Files
FCBizoniUH/nginx.conf
T
Tomáš Dvořák fcb9f2d60c automated
2025-08-26 09:18:40 +02:00

24 lines
513 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Serve static assets
location / {
try_files $uri $uri/ /index.html;
}
# Proxy data API to backend
location /data/ {
proxy_pass http://backend:8080/data/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
add_header Access-Control-Allow-Origin *;
}
location /healthz {
proxy_pass http://backend:8080/healthz;
}
}