med-notes/reader/nginx.conf
2025-04-06 03:03:04 +00:00

22 lines
529 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Optional: Configure caching for static assets
location /static/ {
expires 1y;
add_header Cache-Control "public, max-age=31536000";
}
# Optional: Configure caching for build assets (adjust paths as needed)
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, max-age=31536000";
}
}