broadcast/devloop/nginx/default.conf

29 lines
677 B
Plaintext
Raw Normal View History

2023-03-07 00:56:35 +01:00
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;
}
}