aboutsummaryrefslogtreecommitdiffstats
path: root/nginx.conf
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-05-01 20:59:37 +0000
committerterminaldweller <devi@terminaldweller.com>2025-05-01 20:59:37 +0000
commit1cac36f267f7c0953090c134b7afc0706ee080a8 (patch)
treeed0964289dc9ebbefda1343bc3ab3f240abc80f8 /nginx.conf
parentusing nginx as reverse proxy now (diff)
downloadicanhazallips-1cac36f267f7c0953090c134b7afc0706ee080a8.tar.gz
icanhazallips-1cac36f267f7c0953090c134b7afc0706ee080a8.zip
added the proxy protocol to the servermain2
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 / {