Files
batida-landing/nginx.conf
Mário Idival ed885aebef
All checks were successful
Deploy / Build & Push (Prod) (push) Successful in 8s
Deploy / Deploy Staging (push) Successful in 4s
Deploy / Deploy Prod (push) Successful in 5s
feat: add i18n with English (default) and PT-BR (/pt-br)
- Translate index.html to English as default language
- Copy PT-BR version to index.pt-br.html
- Add hreflang tags for SEO in both versions
- Add language selector in navbar (EN ↔ PT-BR)
- Add nginx.conf with Content-Language headers and /pt-br routing
- Update Dockerfile to process and serve both HTML files
2026-04-17 16:11:55 -03:00

25 lines
514 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ =404;
default_type text/html;
add_header Content-Language "en" always;
}
location /pt-br {
try_files $uri $uri/ /pt-br/index.html =404;
default_type text/html;
add_header Content-Language "pt-BR" always;
}
location = /pt-br {
return 301 /pt-br/;
}
gzip on;
gzip_types text/html text/css application/javascript;
}