mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-23 14:22:54 +00:00
Merge pull request #109 from mhoffmann75/mhoffmann75-patch-zpush-proxy-header
Make real IP logging work in proxy scenario
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Configuring Z-Push for use behind a reverse proxy"
|
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
|
-i /etc/z-push/z-push.conf.php
|
||||||
|
|
||||||
echo "Ensure config ownership"
|
echo "Ensure config ownership"
|
||||||
|
|||||||
Reference in New Issue
Block a user