summaryrefslogtreecommitdiffstats
path: root/.examples/docker-compose
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-04-03 09:40:53 +0200
committerPierre Ozoux <pierre@ozoux.net>2018-04-03 09:40:53 +0200
commit01ad4658abe6add2ee6282432b0d3d3e5d22d135 (patch)
tree18959b91a593a8eefe8da1d8ac5fb2af3b07678b /.examples/docker-compose
parentf3d3f166ac4276691b69dc88ac8bbd96f81f1620 (diff)
nginx: set the remote ip from X-Real-IP by default (#302)
Diffstat (limited to '.examples/docker-compose')
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf5
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf5
-rw-r--r--.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf5
3 files changed, 15 insertions, 0 deletions
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
index 0b6fb89b..eb67c0f5 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
@@ -25,6 +25,11 @@ http {
keepalive_timeout 65;
+ set_real_ip_from 10.0.0.0/8;
+ set_real_ip_from 172.16.0.0/12;
+ set_real_ip_from 192.168.0.0/16;
+ real_ip_header X-Real-IP;
+
#gzip on;
upstream php-handler {
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
index 0b6fb89b..eb67c0f5 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
@@ -25,6 +25,11 @@ http {
keepalive_timeout 65;
+ set_real_ip_from 10.0.0.0/8;
+ set_real_ip_from 172.16.0.0/12;
+ set_real_ip_from 192.168.0.0/16;
+ real_ip_header X-Real-IP;
+
#gzip on;
upstream php-handler {
diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
index 0b6fb89b..eb67c0f5 100644
--- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
@@ -25,6 +25,11 @@ http {
keepalive_timeout 65;
+ set_real_ip_from 10.0.0.0/8;
+ set_real_ip_from 172.16.0.0/12;
+ set_real_ip_from 192.168.0.0/16;
+ real_ip_header X-Real-IP;
+
#gzip on;
upstream php-handler {