Adicionar web/nginx.conf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user