1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-10 17:36:19 +00:00

Make real IP logging work in proxy scenario

USE_CUSTOM_REMOTE_IP_HEADER should either be false or contain the name of the header to be used.
This commit is contained in:
Martin Hoffmann 2019-03-11 18:05:07 +01:00 committed by GitHub
parent bd83306390
commit 6bd8db655b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ else
fi
echo "Configuring Z-Push for use behind a reverse proxy"
sed -e "s#define([\"']USE_CUSTOM_REMOTE_IP_HEADER[\"'],\s*false)#define('USE_CUSTOM_REMOTE_IP_HEADER', true)#" \
sed -e "s#define([\"']USE_CUSTOM_REMOTE_IP_HEADER[\"'],\s*false)#define('USE_CUSTOM_REMOTE_IP_HEADER', 'HTTP_X_FORWARDED_FOR')#" \
-i /etc/z-push/z-push.conf.php
echo "Ensure config ownership"