From c7562496909d972d0585657cbc85a2f7bf84491a Mon Sep 17 00:00:00 2001 From: MatheusAlves96 Date: Tue, 21 Apr 2026 01:23:05 -0300 Subject: [PATCH] fix: remove nginx backend proxy - traefik handles routing, fixes host not found error --- frontend/nginx.conf | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index d5b7095..55c27fe 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -12,16 +12,7 @@ server { add_header Content-Type text/plain; } - # Proxy API calls to backend (handled by Traefik, but keep for direct access) - location /api/ { - proxy_pass http://backend:5000; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # SPA fallback + # SPA fallback — todas as rotas vão para index.html location / { try_files $uri $uri/ /index.html; }