Files
bridgehead/ccp/modules/ovis-setup.sh
T
1b4a290216 Add Ovis to the CCP modules in the bridgehead (#375)
This is a squash of 62 commits integrating ovis into the Bridgehead; authors see below.

---------

Co-authored-by: janskiba <jan.skiba@dkfz-heidelberg.de>
Co-authored-by: Torben Brenner <76154651+torbrenner@users.noreply.github.com>
Co-authored-by: Tobias Kussel <tobias.kussel@dkfz-heidelberg.de>
Co-authored-by: Torben Brenner <t.brenner@dkfz-heidelberg.de>
Co-authored-by: Martin Lablans <m.lablans@dkfz-heidelberg.de>
2026-08-13 18:18:52 +02:00

13 lines
558 B
Bash

#!/bin/bash -e
if [ "$ENABLE_OVIS" == true ]; then
log INFO "OVIS setup detected -- will start OVIS services with local oauth2-proxy middleware."
OVERRIDE+=" -f ./$PROJECT/modules/ovis-compose.yml"
add_private_oidc_redirect_url "/oauth2-ovis/callback"
add_private_oidc_redirect_url "/ccp-ovis*"
OVIS_AUTH_COOKIE_SECRET="$(generate_simple_password 'ovisCookieSecret' | head -c 16)"
if [ -z "$OVIS_SUPERADMIN_EMAILS" ]; then
log WARN "OVIS is enabled but OVIS_SUPERADMIN_EMAILS is not set -- nobody will be able to administrate OVIS."
fi
fi