# Static documentation site (zensical output). Clean-URL directories served from # per-directory index.html, with a styled 404, gzip, and long-cached assets. server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; gzip on; gzip_types text/css application/javascript application/json image/svg+xml text/plain; gzip_min_length 256; location / { try_files $uri $uri/ =404; } # Fingerprinted CSS/JS/images emitted under assets/ can be cached hard. location /assets/ { expires 30d; add_header Cache-Control "public, immutable"; } error_page 404 /404.html; location = /404.html { internal; } }