mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 10:25:12 +00:00
Split nginx configuration to several files
This commit is contained in:
3
nginx/components/login.conf
Normal file
3
nginx/components/login.conf
Normal file
@ -0,0 +1,3 @@
|
||||
location = /login {
|
||||
proxy_pass http://127.0.0.1:${TFW_LOGIN_APP_PORT};
|
||||
}
|
6
nginx/components/terminal.conf
Normal file
6
nginx/components/terminal.conf
Normal file
@ -0,0 +1,6 @@
|
||||
location = /terminal {
|
||||
proxy_pass http://127.0.0.1:${TFW_TERMINADO_PORT};
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
@ -12,16 +12,7 @@ server {
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
|
||||
location = /terminal {
|
||||
proxy_pass http://127.0.0.1:${TFW_TERMINADO_PORT};
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location = /login {
|
||||
proxy_pass http://127.0.0.1:${TFW_LOGIN_APP_PORT};
|
||||
}
|
||||
include ${TFW_NGINX_COMPONENTS}/*.conf;
|
||||
|
||||
location / {
|
||||
root ${TFW_FRONTEND_DIR};
|
Reference in New Issue
Block a user