mirror of
https://github.com/Dvorinka/bizoni.git
synced 2026-06-03 18:22:57 +00:00
24 lines
513 B
Nginx Configuration File
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;
|
|
}
|
|
}
|