Commit Graph

7 Commits

Author SHA1 Message Date
richardtekula
ccc5ba47c7 Add Traefik labels for domain routing and SSL
Added traefik.enable, router rules, TLS config, and loadbalancer
  settings to enable proper routing through Traefik reverse proxy.
2025-11-11 17:20:11 +01:00
richardtekula
f78c2199e1 Fix: Rename directory to remove & character causing shell issues
Renamed ebook_backend&admin_panel to ebook_backend_admin_panel
  The & character was being interpreted by shell as background
  process operator, causing 'Dockerfile not found' errors in Coolify.
2025-11-11 17:06:39 +01:00
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