fix(nginx): alias /storage/ directly to /var/www/storage/app/public/ for persistent uploads
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user