2019-10-08 12:24:31 +00:00
|
|
|
upstream terminal {
|
|
|
|
server 127.0.0.1:${TFW_TERMINAL_PORT};
|
|
|
|
server 127.0.0.1:${TFW_TERMINAL_FALLBACK_PORT} backup;
|
|
|
|
}
|
|
|
|
|
2018-01-10 15:55:48 +00:00
|
|
|
server {
|
|
|
|
listen ${TFW_PUBLIC_PORT};
|
|
|
|
server_name localhost;
|
|
|
|
proxy_connect_timeout 7d;
|
|
|
|
proxy_send_timeout 7d;
|
|
|
|
proxy_read_timeout 7d;
|
2018-05-09 15:01:29 +00:00
|
|
|
absolute_redirect off;
|
2018-01-10 15:55:48 +00:00
|
|
|
|
|
|
|
location = /ws {
|
|
|
|
proxy_pass http://127.0.0.1:${TFW_WEB_PORT};
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
}
|
|
|
|
|
2018-01-31 16:51:45 +00:00
|
|
|
include ${TFW_NGINX_COMPONENTS}/*.conf;
|
2018-01-10 15:55:48 +00:00
|
|
|
|
|
|
|
location / {
|
2018-03-14 09:23:46 +00:00
|
|
|
index index.html;
|
|
|
|
try_files $uri $uri/ /index.html =404;
|
2018-01-10 15:55:48 +00:00
|
|
|
root ${TFW_FRONTEND_DIR};
|
|
|
|
}
|
|
|
|
}
|