From b4ceabc2487b5677fc1bc49ae4cc3e449f77093a Mon Sep 17 00:00:00 2001 From: нездалисько <105280814+crisukbot@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:55:29 +0300 Subject: add OIDCSessionMaxDuration and OIDCSessionInactivityTimeout (#6642) * add OIDCSessionMaxDuration and OIDCSessionInactivityTimeout * entrypoint.sh OIDCSessionMaxDuration and Session fix * fix: entrypoint.sh OIDCSessionMaxDuration and OIDCSessionInactivityTimeout and Alpine support * Use Apache config file instead * Spelling * fixed after restarting the double OIDC lines * Refactor --------- Co-authored-by: Alexandre Alapetite --- Docker/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Docker/entrypoint.sh') diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh index 7a12842a5..8784247cd 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -31,6 +31,8 @@ if [ -n "$OIDC_ENABLED" ] && [ "$OIDC_ENABLED" -ne 0 ]; then OIDC_SCOPES=$(echo "$OIDC_SCOPES" | tr ':' ' ') export OIDC_SCOPES fi + find /etc/apache2/*/ -type f -name '*openidc.conf' -exec sed -r -i "/^#?OIDCSessionInactivityTimeout/s/^.*/OIDCSessionInactivityTimeout ${OIDCSessionInactivityTimeout:-86400}/" {} \; + find /etc/apache2/*/ -type f -name '*openidc.conf' -exec sed -r -i "/^#?OIDCSessionMaxDuration/s/^.*/OIDCSessionMaxDuration ${OIDCSessionMaxDuration:-2592000}/" {} \; fi if [ -n "$CRON_MIN" ]; then -- cgit v1.2.3