From f0209fbdc8c710c42f44d5a6a9e0f1ae3bd852fe Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Fri, 5 Jun 2026 23:26:15 -0700 Subject: [PATCH] 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 --- nixos/nginx.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 15168f4..a570b1f 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -121,6 +121,10 @@ locations."/" = { proxyPass = "http://127.0.0.1:8000/"; 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; ''; };