Adicionar web/nginx.conf

This commit is contained in:
2026-08-19 20:25:56 -03:00
parent cc4dc03d98
commit 0927159f83
+33
View File
@@ -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;
}
}
}