Files
2026-08-19 20:25:56 -03:00

34 lines
662 B
Nginx Configuration File

# 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;
}
}
}