Add WebSocket proxy headers to paperless nginx vhost
Paperless-ngx uses WebSockets to push task completion status to the browser. Without Upgrade/Connection headers the UI hangs indefinitely after upload while waiting for the done notification. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
047c4b2207
commit
f0209fbdc8
1 changed files with 4 additions and 0 deletions
|
|
@ -121,6 +121,10 @@
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8000/";
|
proxyPass = "http://127.0.0.1:8000/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_read_timeout 86400;
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue