fix: acceso público a imágenes de storage para WhatsApp y navegador

- Mueve la ruta /storage/{path} fuera del middleware de auth para que
  sea pública; necesario para que los servidores de WhatsApp y el navegador
  puedan cargar imágenes de promociones sin autenticación
- Dockerfile: agrega 'rm -rf public/storage' antes de storage:link para
  evitar que COPY copie la junction de Windows y deje el symlink roto en el contenedor
- Crea .dockerignore: excluye public/storage, .git, .env y artefactos de
  build del contexto de Docker para builds más limpios y seguros

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 21:06:08 -06:00
parent a0c3194e88
commit 3f48c0bc7c
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ RUN mkdir -p storage/framework/sessions storage/framework/views storage/framewor
&& chmod -R 775 storage bootstrap/cache \
&& chown -R nobody:nginx storage bootstrap/cache
RUN php artisan storage:link
RUN rm -rf public/storage && php artisan storage:link
COPY nginx.conf /etc/nginx/nginx.conf
COPY supervisord.conf /etc/supervisord.conf