diff --git a/nginx.conf b/nginx.conf index 4770b92..5be342a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -54,6 +54,13 @@ http { try_files $uri /index.html; } + # Static public files (favicon, images, manifest, fonts) + location ~* \.(png|jpe?g|gif|ico|svg|webp|avif|webmanifest|eot|ttf|woff2?|otf)$ { + root /usr/share/nginx/html; + expires 7d; + add_header Cache-Control "public"; + } + # Catch-all → SSR proxy (unknown paths get a 404 from SSR) location / { proxy_pass http://127.0.0.1:3001;