portfolio/nginx.conf

15 lines
311 B
Nginx Configuration File
Raw Normal View History

2026-06-29 20:29:56 +02:00
server {
listen 80;
server_name _;
2026-06-29 20:38:04 +02:00
root /usr/share/nginx/html;
2026-06-29 20:29:56 +02:00
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}