companion/@deployments/nginx/README.md
Claude Code ab8ac46e2c deploy(deploy): 🚀 Update Nginx server settings and SSL/TLS configurations for AI service in production
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-09 20:45:45 -07:00

30 lines
918 B
Markdown

# @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:
```bash
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
- Voice sessions can last up to 1 hour
- The chat endpoint uses SSE with `flush_interval -1` (Caddy) / `proxy_buffering off` (nginx)