companion/@deployments/nginx
2026-04-09 21:06:40 -07:00
..
README.md docs(deployments): 📝 Update Nginx deployment documentation with revised instructions, best practices, and configuration examples 2026-04-09 21:06:40 -07:00

@companion nginx / reverse proxy

Development (apricot)

Managed by Caddy in the lilith-platform Caddyfile:

@projects/@lilith/lilith-platform.live/infrastructure/Caddyfile.local

Domain: ai.quinn.apricot.local — routes API paths (/health, /voice/*, /chat, /session/*, /api/*) to companion-api on :3850, everything else to Vite dev server on :5850.

Reload after changes:

cd ~/Code/@projects/@lilith/lilith-platform.live
caddy reload --config infrastructure/Caddyfile.local

Production (VPS)

nginx config in @deployments/quinn.ai/nginx/prod.conf.

Domain: ai.transquinnftw.com — deployed via @deployments/quinn.ai/deploy.sh.

Voice WebSocket Notes

  • Binary PCM frames must not be buffered — any buffering causes audio glitches
  • The chat endpoint uses SSE with flush_interval -1 (Caddy) / proxy_buffering off (nginx)