fix: keep the terminal WebSocket open past nginx's 60s default (#1588)

This commit is contained in:
Darnel Hunter authored and GitHub committed 2026-10-11 15:13:09 -05:00
1 parent c7596d72fb
commit 6096c226a3
2 files changed
+20

No files matched your search

+10
View File
@@ -425,6 +425,16 @@ http {
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 $proxy_x_forwarded_proto;
# A terminal is quiet most of the time - waiting on a prompt, reading
# output, running something long. Every console plugin dials this route
# (terminal, serial, remote desktop), and nginx's default
# proxy_read_timeout of 60s closed the socket about a minute into any
# pause, which reaches the user as the SSH server disconnecting. The
# plugin WebSocket routes below already ask for 86400s; this is the same
# class of socket, so it asks for the same.
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_buffering off;
}
location /host/ {