baseimage-tutorial-framework/src/nginx/sites-available/default

24 lines
550 B
Plaintext
Raw Normal View History

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;
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-17 10:19:41 +00:00
location = /login {
2018-01-10 15:55:48 +00:00
proxy_pass http://127.0.0.1:${TFW_LOGIN_APP_PORT};
}
location / {
root ${TFW_FRONTEND_DIR};
try_files $uri $uri/ index.html;
}
}