server { listen 80; server_name localhost; root /app; index index.html; autoindex on; autoindex_format html; location ~* \.(md)$ { add_header Content-Type text/plain; } location ~* \.(png|jpg|jpeg|gif|svg|ico)$ { expires 30d; add_header Cache-Control "public, immutable"; } location ~* \.(html)$ { add_header Content-Type text/html; } location / { try_files $uri $uri/ =404; } }