aboutsummaryrefslogtreecommitdiffstats
path: root/nginx.conf
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-05-01 20:55:00 +0000
committerterminaldweller <devi@terminaldweller.com>2025-05-01 20:55:00 +0000
commit137e164d028a18a9f4f251e2250553a6a3524d6c (patch)
treeb64225aee59912587b5477532606d78565b88e7c /nginx.conf
parentusing nginx as reverse proxy now (diff)
downloadicanhazallips-137e164d028a18a9f4f251e2250553a6a3524d6c.tar.gz
icanhazallips-137e164d028a18a9f4f251e2250553a6a3524d6c.zip
added the proxy protocol to the server
Diffstat (limited to '')
-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 / {