mirror of
https://github.com/samply/bridgehead.git
synced 2026-08-14 01:12:37 +02:00
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>
13 lines
558 B
Bash
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
|