diff --git a/rootfs-php74/etc/nginx/nginx.conf b/rootfs-php74/etc/nginx/nginx.conf index fa160ec..b32e95e 100644 --- a/rootfs-php74/etc/nginx/nginx.conf +++ b/rootfs-php74/etc/nginx/nginx.conf @@ -89,6 +89,10 @@ http { '' close; } + # use real IPs instead of docker ones + set_real_ip_from 172.18.0.0/16; + real_ip_header X-Forwarded-For; + real_ip_recursive on; # Specifies the main log format. log_format main '$remote_addr - $remote_user [$time_local] "$request" '