A free, self-hostable news aggregator…
add OIDCSessionMaxDuration and OIDCSessionInactivityTimeout (#6642)
нездалиськоb4ceabc2487b
diff --git a/Docker/FreshRSS.Apache.conf b/Docker/FreshRSS.Apache.confindex 49411441b..253f53614 100644--- a/Docker/FreshRSS.Apache.conf+++ b/Docker/FreshRSS.Apache.conf@@ -53,6 +53,7 @@ CustomLog "|/var/www/FreshRSS/cli/sensitive-log.sh" combined_proxyOIDCXForwardedHeaders ${OIDC_X_FORWARDED_HEADERS}</IfDefine>+ # Can be overridden e.g. in /var/www/FreshRSS/p/i/.htaccessOIDCRefreshAccessTokenBeforeExpiry 30</IfDefine>diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.shindex 7a12842a5..8784247cd 100755--- a/Docker/entrypoint.sh+++ b/Docker/entrypoint.sh@@ -31,6 +31,8 @@ if [ -n "$OIDC_ENABLED" ] && [ "$OIDC_ENABLED" -ne 0 ]; thenOIDC_SCOPES=$(echo "$OIDC_SCOPES" | tr ':' ' ')export OIDC_SCOPESfi+ 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}/" {} \;fiif [ -n "$CRON_MIN" ]; then