fix: remove nginx backend proxy - traefik handles routing, fixes host not found error
Some checks failed
CI/CD → Deploy via SSH / Build & Push Docker Images (push) Successful in 39s
CI/CD → Deploy via SSH / Deploy via SSH (push) Successful in 1m2s
CI/CD → Deploy via SSH / Validate HTTPS & Endpoints (push) Failing after 45s

This commit is contained in:
MatheusAlves96 2026-04-21 01:23:05 -03:00
parent 385a2f78e8
commit c756249690

View file

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