This commit is contained in:
Iliyan Angelov
2025-11-25 20:18:23 +02:00
parent 8823edc8b3
commit e639736187
16 changed files with 190 additions and 61 deletions

View File

@@ -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