Generate addtional redirect url

This commit is contained in:
janskiba 2023-11-20 11:34:18 +00:00 committed by juarez
parent 0545189cec
commit 67831ba57b
1 changed files with 6 additions and 1 deletions

View File

@ -3,5 +3,10 @@
if [ "$ENABLE_TEILER" == true ];then if [ "$ENABLE_TEILER" == true ];then
log INFO "Teiler setup detected -- will start Teiler services." log INFO "Teiler setup detected -- will start Teiler services."
OVERRIDE+=" -f ./$PROJECT/modules/teiler-compose.yml" OVERRIDE+=" -f ./$PROJECT/modules/teiler-compose.yml"
generate_public_oidc_client "OIDC_PUBLIC" "https://${HOST}/ccp-teiler/*" redirect_urls="https://${HOST}/ccp-teiler/*"
host_without_proxy="$(echo "$HOST" | cut -d '.' -f1)"
if [[ "$HOST" != "$host_without_proxy" ]]; then
redirect_urls+=",https://$host_without_proxy/ccp-teiler/*"
fi
generate_public_oidc_client "OIDC_PUBLIC" "$redirect_urls"
fi fi