aboutsummaryrefslogtreecommitdiff
path: root/Docker/FreshRSS.Apache.conf
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-10-16 09:25:43 +0200
committerGravatar GitHub <noreply@github.com> 2020-10-16 09:25:43 +0200
commit9ab05c7f67a04409245b97c7c22a746b32e07847 (patch)
tree12d8d0ffa5eedc459e5a88a3f822e507f1a5cd73 /Docker/FreshRSS.Apache.conf
parentc6b843e04eff863cbf687e4ecbaa4e0ec989418d (diff)
Docker: Use Apache remoteip (#3226)
#fix https://github.com/FreshRSS/FreshRSS/issues/3224 Log the client remote IP instead of the local proxy IP https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
Diffstat (limited to 'Docker/FreshRSS.Apache.conf')
-rw-r--r--Docker/FreshRSS.Apache.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/Docker/FreshRSS.Apache.conf b/Docker/FreshRSS.Apache.conf
index 6621ff16f..004c6c8e2 100644
--- a/Docker/FreshRSS.Apache.conf
+++ b/Docker/FreshRSS.Apache.conf
@@ -1,7 +1,10 @@
ServerName freshrss.localhost
Listen 0.0.0.0:80
DocumentRoot /var/www/FreshRSS/p/
-CustomLog /dev/stdout combined
+RemoteIPHeader X-Forwarded-For
+RemoteIPTrustedProxy 10.0.0.1/8 172.16.0.1/12 192.168.0.1/16
+LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_proxy
+CustomLog /dev/stdout combined_proxy
ErrorLog /dev/stderr
AllowEncodedSlashes On
ServerTokens OS