events { worker_connections 1024; } http { server { listen 80; # Proxy for the Vite frontend location / { proxy_pass http://frontend:80; 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; } } }