Files
admin/nginx.conf

17 lines
589 B
Nginx Configuration File
Raw Permalink Normal View History

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Proxy API calls to the backend container.
location /admin/ { proxy_pass http://backend:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }
location /api/ { proxy_pass http://backend:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }
location /healthz { proxy_pass http://backend:8080; }
# SPA fallback: serve index.html for client-side routes.
location / {
try_files $uri $uri/ /index.html;
}
}