diff options
author | terminaldweller <devi@terminaldweller.com> | 2025-05-01 20:55:00 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2025-05-01 20:55:00 +0000 |
commit | 137e164d028a18a9f4f251e2250553a6a3524d6c (patch) | |
tree | b64225aee59912587b5477532606d78565b88e7c /nginx.conf | |
parent | using nginx as reverse proxy now (diff) | |
download | icanhazallips-137e164d028a18a9f4f251e2250553a6a3524d6c.tar.gz icanhazallips-137e164d028a18a9f4f251e2250553a6a3524d6c.zip |
added the proxy protocol to the server
Diffstat (limited to '')
-rw-r--r-- | nginx.conf | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 / { |