updates
This commit is contained in:
@@ -200,9 +200,9 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
# Frontend public images - must come before root location
|
||||
location ~ ^/images/(.*)$ {
|
||||
alias /var/www/GNX-WEB/frontEnd/public/images/$1;
|
||||
# Frontend public images - use prefix location (must come before root location)
|
||||
location /images/ {
|
||||
alias /var/www/GNX-WEB/frontEnd/public/images/;
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
access_log off;
|
||||
@@ -216,6 +216,9 @@ server {
|
||||
image/webp webp;
|
||||
}
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Try files, then fallback
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Root location - Frontend (Next.js) - MUST be last
|
||||
|
||||
Reference in New Issue
Block a user