diff --git a/web/nginx.conf b/web/nginx.conf new file mode 100644 index 0000000..e15915d --- /dev/null +++ b/web/nginx.conf @@ -0,0 +1,33 @@ +# All comments are in English. + +events {} + +http { + server { + listen 80; + + # Serve static frontend + location / { + root /usr/share/nginx/html; + index index.html; + } + + # Proxy API calls to Flask backend + location /api/ { + proxy_pass http://backend:8000/api/; + } + + # Proxy OAuth routes + location /login { + proxy_pass http://backend:8000/login; + } + + location /oauth/callback { + proxy_pass http://backend:8000/oauth/callback; + } + + location /health { + proxy_pass http://backend:8000/health; + } + } +}