sass-imobiliaria/frontend/nginx.conf
MatheusAlves96 c756249690
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
fix: remove nginx backend proxy - traefik handles routing, fixes host not found error
2026-04-21 01:23:05 -03:00

23 lines
533 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Health check endpoint
location /health {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
# SPA fallback — todas as rotas vão para index.html
location / {
try_files $uri $uri/ /index.html;
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;
gzip_min_length 1024;
}