29 lines
677 B
Plaintext
29 lines
677 B
Plaintext
|
server {
|
||
|
listen 80 default_server;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://ui:3000;
|
||
|
}
|
||
|
|
||
|
# needed for hot module reloading
|
||
|
location /ws {
|
||
|
proxy_pass http://ui:3000;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host $host;
|
||
|
}
|
||
|
|
||
|
location /liveness {
|
||
|
proxy_pass http://api:8080;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host $host;
|
||
|
}
|
||
|
|
||
|
location ~* /(start|stop|status) {
|
||
|
proxy_pass http://api:8080;
|
||
|
}
|
||
|
}
|