From a1e99c347d06f8a2f26faf589ef80aa0b75c0819 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Apr 2020 12:07:36 +0100 Subject: [PATCH] Use forwarded header to get real IP --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index f799802..9ba7deb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,6 +17,9 @@ http { access_log /dev/stdout; access_log /var/log/nginx/access.log; + set_real_ip_from 0.0.0.0/0; + real_ip_header X-Forwarded-For; + sendfile on; keepalive_timeout 65;