Files
timothykim 828e1e20d2
Build and Push Docker Image / build (push) Successful in 9s
fix 404 handling, ignore static/media
2026-03-19 22:28:07 -04:00

18 lines
375 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/ =404;
}
# Cache static assets aggressively
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}