Files
gabrielkaszewski-next/nginx.conf
Gabriel Kaszewski 369cd75bfe
Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 7s
static export + nginx, drop runtime server
~800MiB -> ~5MiB RAM
2026-08-08 15:51:24 +02:00

22 lines
386 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri.html $uri/ =404;
}
location /_next/static/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location /images/ {
expires 30d;
add_header Cache-Control "public";
}
error_page 404 /404.html;
}