From 8cb62737828fa417d0ecde106b73fc58b9d7fb56 Mon Sep 17 00:00:00 2001 From: atlas Date: Thu, 15 Oct 2026 13:44:29 +0200 Subject: [PATCH] swarm-ui: stop nginx buffering the controller's SSE streams on /api/ --- nix/host-modules/swarm-ui.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/host-modules/swarm-ui.nix b/nix/host-modules/swarm-ui.nix index 3478c1b8..d5ed39e1 100644 --- a/nix/host-modules/swarm-ui.nix +++ b/nix/host-modules/swarm-ui.nix @@ -232,6 +232,10 @@ in auth_request_set $authelia_user $upstream_http_remote_user; proxy_set_header Remote-User $authelia_user; proxy_set_header Authorization ""; + # The SSE streams (terminal, agent state, subagent terminal) + # must not sit in nginx's buffer. The controller's 15s + # keep-alive keeps them under nginx's 60s default read timeout. + proxy_buffering off; ''; }; "@swarm_api_unauthorized".extraConfig = ''