fix: corregir migraciones fallidas, redis doble carga y cache de assets

- Eliminar .env del tracking de git (credenciales no deben ir en repo)
- Agregar .env y .env.* al .dockerignore (no hornear credenciales en imagen)
- Quitar extension=redis.so duplicada en php.ini
- Activar cache 7d para assets estáticos en nginx
- Corregir 5 migraciones: eliminar INSERT INTO migrations con columna incorrecta
  y remover semicolons en comentarios -- que partian el parser SQL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-23 19:24:41 -05:00
co-authored by Claude Sonnet 4.6
parent a39e94c71b
commit 1342d305ec
11 changed files with 12 additions and 131 deletions
+3 -10
View File
@@ -5,11 +5,6 @@ server {
root /var/www/html;
index index.php index.html;
# 🚫 CACHE DESACTIVADO GLOBALMENTE
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
@@ -84,12 +79,10 @@ server {
access_log off;
}
# Static assets - SIN CACHE para desarrollo
# Static assets
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot)$ {
# CACHE DESACTIVADO
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
add_header Pragma "no-cache" always;
expires off;
expires 7d;
add_header Cache-Control "public, max-age=604800" always;
access_log off;
}
+1 -2
View File
@@ -56,5 +56,4 @@ realpath_cache_ttl = 600
; Output buffering
output_buffering = 4096
; Redis
extension = redis.so
; Redis extension habilitada vía docker-php-ext-enable en builder stage (conf.d/docker-php-ext-redis.ini)