Add a fallback port for the terminal to avoid crashing proxies

This commit is contained in:
Kristóf Tóth
2019-10-08 14:24:31 +02:00
parent 251bc6325a
commit 641709c04e
4 changed files with 18 additions and 7 deletions

View File

@ -1,5 +1,5 @@
location = /terminal {
proxy_pass http://127.0.0.1:${TFW_TERMINADO_PORT};
proxy_pass http://terminal;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

View File

@ -1,3 +1,8 @@
upstream terminal {
server 127.0.0.1:${TFW_TERMINAL_PORT};
server 127.0.0.1:${TFW_TERMINAL_FALLBACK_PORT} backup;
}
server {
listen ${TFW_PUBLIC_PORT};
server_name localhost;