9725714aa2f09495bf3bfe0e62e2561f911fed25
TASK-006: Document the nginx routing configuration that ensures API requests returning 404 from FastAPI are not intercepted by the SPA wildcard fallback rule. This prevents development bugs from being masked by 200 responses containing HTML instead of 404 errors. Added section 9.2 in Architekture.md covering: - nginx location block priority (longest-prefix matching) - Routing configuration for /api/, /assets/, and / - Detailed routing behavior diagrams - Critical implementation notes to prevent regressions The current nginx.conf is already correct: - /api/ location has no try_files and proxies directly to backend - /assets/ location uses try_files with =404 - / catch-all uses SPA fallback to index.html This ensures: ✓ API typos like /api/jailss return 404, not SPA HTML ✓ Frontend routes serve SPA HTML for client-side routing ✓ Static assets properly return 404 when missing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Description
No description provided
Languages
Python
61.2%
TypeScript
24.9%
HTML
8.4%
Markdown
2.5%
Roff
0.9%
Other
2%