mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 15:41:32 +00:00
29 lines
689 B
Plaintext
29 lines
689 B
Plaintext
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;
|
|
proxy_connect_timeout 7d;
|
|
proxy_send_timeout 7d;
|
|
proxy_read_timeout 7d;
|
|
absolute_redirect off;
|
|
|
|
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";
|
|
}
|
|
|
|
include ${TFW_NGINX_COMPONENTS}/*.conf;
|
|
|
|
location / {
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html =404;
|
|
root ${TFW_FRONTEND_DIR};
|
|
}
|
|
}
|