portfolio/nginx.conf
karlm 7caa00e46b
All checks were successful
Build / build (push) Successful in 11s
nginx.conf aktualisiert
2026-06-29 20:33:27 +02:00

15 lines
No EOL
299 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /app/dist;
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";
}
}