portfolio/nginx.conf
karlm 34557be999
All checks were successful
Build / build (push) Successful in 12s
nginx.conf hinzugefügt
2026-06-29 20:29:56 +02:00

16 lines
No EOL
347 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Optional: cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}