Fix paperless nginx: remove duplicate proxy_set_header directives

recommendedProxySettings already injects Host, X-Real-IP, X-Forwarded-*
via an include in the location block. Our explicit extraConfig set them
again, causing Django to receive 'host,host' and reject with DisallowedHost.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Philip Peterson 2026-06-05 23:20:27 -07:00
parent 3fea6dddd7
commit 047c4b2207

View file

@ -121,10 +121,6 @@
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8000/"; proxyPass = "http://127.0.0.1:8000/";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 100M; client_max_body_size 100M;
''; '';
}; };