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:
parent
3fea6dddd7
commit
047c4b2207
1 changed files with 0 additions and 4 deletions
|
|
@ -121,10 +121,6 @@
|
|||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8000/";
|
||||
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;
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue