Files
timothykim.net/nginx.conf
T
timothykim 1c42e18849
Test Runner / test (push) Successful in 1s
phantom commit to test action
2026-02-28 22:39:58 -05:00

18 lines
382 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# Clean URLs — serve index.html for directories
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets aggressively
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}