companion/@deployments/nginx/README.md
Natalie 4707afa155 fix(@projects): 🐛 update local network domains to lan
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-10 03:15:37 -07:00

29 lines
877 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.lan` — 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
- The chat endpoint uses SSE with `flush_interval -1` (Caddy) / `proxy_buffering off` (nginx)