availabili.tf/nginx/default.conf

25 lines
541 B
Plaintext

server {
listen 80;
# Proxy for the Vite frontend
location / {
proxy_pass http://frontend:5173;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Proxy for the Flask backend API
location /api/ {
proxy_pass http://backend:5000;
proxy_set_header Host $host;
}
location /apidoc/ {
proxy_pass http://backend:5000;
proxy_set_header Host $host;
}
}