29 lines
877 B
Markdown
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)
|