mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-11 01:25:35 +00:00
19 lines
452 B
Plaintext
19 lines
452 B
Plaintext
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Proxy API calls through to the app service so live stats work
|
|
location /api/ {
|
|
proxy_pass http://app:3000/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# SPA fallback — all routes serve index.html
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|