server { listen 8080; server_name mermaid; location / { root /usr/share/nginx/html; # Fallback to index.html for other paths try_files $uri /index.html; } }