Commit Graph

5 Commits

Author SHA1 Message Date
richardtekula
a3b609eab7 Fix: Resolve route conflict - move root JSON endpoint to /api
The root / endpoint in main.py was conflicting with the HTML
  endpoint in auth.router, causing the homepage to return JSON
  instead of rendering the HTML dashboard. Moved API info to /api
  to allow auth.router to properly handle / and /login pages.
2025-11-11 16:57:38 +01:00
richardtekula
f9c80c375a Fix: Disable TrustedHostMiddleware behind Traefik proxy
TrustedHostMiddleware was blocking localhost healthchecks from Traefik,
  causing 400 Bad Request errors. When behind a reverse proxy like
  Traefik/Coolify, host validation is handled by the proxy itself.
2025-11-11 16:41:43 +01:00
richardtekula
6d0ee923e2 Fix: Dockerfile Python modules path and CMD syntax
- Use virtual environment instead of --user install
  - Fix PATH to /opt/venv/bin (accessible by appuser)
  - Fix CMD syntax with shell form
  - Add curl for healthcheck
  - Proper init_db.py execution before uvicorn
2025-11-11 16:35:57 +01:00
richardtekula
feb583b66c Fix: Remove port mappings for Coolify/Traefik compatibility 2025-11-11 16:29:16 +01:00
richardtekula
e1b95c613d Initial commit: Ebook Translation System with Docker setup 2025-11-11 16:01:34 +01:00