Skip to content
Snippets Groups Projects
Verified Commit 4c84d221 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Allow passing SSO auth configuration as a secret

parent 210b50c7
Branches
No related tags found
1 merge request!21OBS SSO implementation
......@@ -25,6 +25,12 @@ then
ln -sf /run/secrets/msmtprc /etc/msmtprc
fi
# Set up SSO auth if a configuration is supplied
if [ -f /run/secrets/ssoauth ]
then
ln -sf /run/secrets/ssoauth /usr/share/obs/api/config/auth.yml
fi
if [ -n "$OBS_SESSION_LIFETIME_DAYS" ]
then
sed -i 's/:expire_after => .*$/:expire_after => '"$OBS_SESSION_LIFETIME_DAYS"'.day/' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment