diff options
Diffstat (limited to 'Docker/entrypoint.sh')
| -rwxr-xr-x | Docker/entrypoint.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh index c17d0d445..958fb4b40 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -13,11 +13,11 @@ fi if [ -n "$TRUSTED_PROXY" ]; then if [ "$TRUSTED_PROXY" = "0" ]; then - # Disable RemoteIPHeader and RemoteIPTrustedProxy + # Disable RemoteIPHeader and RemoteIPInternalProxy find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "/^\s*RemoteIP.*$/s/^/#/" {} \; else - # Custom list for RemoteIPTrustedProxy - find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^\s*RemoteIPTrustedProxy#s#^.*#\tRemoteIPTrustedProxy $TRUSTED_PROXY#" {} \; + # Custom list for RemoteIPInternalProxy + find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^\s*RemoteIPInternalProxy#s#^.*#\tRemoteIPInternalProxy $TRUSTED_PROXY#" {} \; fi fi |
