aboutsummaryrefslogtreecommitdiffstats
path: root/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
index 5a9c8a3..b917535 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -26,6 +26,8 @@ http {
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "no-referrer";
fastcgi_hide_header X-Powered-By;
+ proxy_set_header X-Real-IP $proxy_protocol_addr;
+ proxy_set_header X-Forwarded-For $proxy_protocol_addr;
error_page 401 403 404 /404.html;
location / {