Files
web-jailgames/nginx.conf
T
JailDesigner e337d7bc45 Implementación completa del sitio JAILGAMES (bloques A–J)
Sitio estático generado con Eleventy (11ty) + Nginx en Docker:
- Plantillas Nunjucks con layout base, tarjetas y fichas individuales
- Datos de juegos en YAML, colección ordenada por fecha
- CSS con tema oscuro gaming y diseño responsive (3/2/1 columnas)
- Lightbox vanilla JS para capturas de pantalla
- Build multi-stage Docker (node:20-alpine → nginx:alpine)
- 2 juegos de ejemplo con imágenes SVG placeholder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 12:58:55 +02:00

34 lines
802 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Compresión para HTML/CSS/JS
gzip on;
gzip_types text/html text/css application/javascript application/json image/svg+xml;
gzip_min_length 256;
# Cacheo para assets estáticos (feria local)
location ~* \.(png|jpg|jpeg|gif|svg|ico|webp)$ {
expires 7d;
add_header Cache-Control "public, immutable";
}
# Descargas: forzar descarga en lugar de abrir en navegador
location /downloads/ {
add_header Content-Disposition "attachment";
sendfile on;
tcp_nopush on;
}
# Rutas limpias
location / {
try_files $uri $uri/ $uri.html =404;
}
# Página 404 personalizada
error_page 404 /404.html;
}