From a1c0042eb1361d3541706b6102cc102ef2f89caf Mon Sep 17 00:00:00 2001 From: Ray1111-aa Date: Thu, 22 Oct 2026 15:15:07 +0700 Subject: [PATCH] fix(nginx): alias /storage/ directly to /var/www/storage/app/public/ for persistent uploads --- docker/nginx/default.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 8565aec..e7e36bd 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -26,6 +26,13 @@ server { } # Static Assets Caching + location ^~ /storage/ { + alias /var/www/storage/app/public/; + expires 30d; + access_log off; + add_header Cache-Control "public, no-transform"; + } + location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv|svgz?|ttf|ttc|otf|eot|woff2?)$ { expires 1y; access_log off;