mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 10:45:12 +00:00
Add a fallback port for the terminal to avoid crashing proxies
This commit is contained in:
@ -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";
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user