mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 23:55:23 +00:00
fix: keep the terminal WebSocket open past nginx's 60s default (#1588)
This commit is contained in:
1 parent
c7596d72fb
commit
6096c226a3
2 files changed
+20
No files matched your search
@@ -425,6 +425,16 @@ http {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
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/ {
|
location /host/ {
|
||||||
|
|||||||
@@ -394,6 +394,16 @@ http {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
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/ {
|
location /host/ {
|
||||||
|
|||||||
Reference in new issue
Block a user