From 0927159f838052ecb4271aeb5dfc8b083bd68ea7 Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Wed, 19 Aug 2026 20:25:56 -0300 Subject: [PATCH] Adicionar web/nginx.conf --- web/nginx.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 web/nginx.conf 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; + } + } +}