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:
Philip Peterson 2026-06-05 23:26:15 -07:00
parent 047c4b2207
commit f0209fbdc8

View file

@ -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;
''; '';
}; };