Files
bridgehead/ccp/modules/ovis-setup.sh
T

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