2026-04-09 20:45:45 -07:00
# @companion nginx / reverse proxy
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
## Development (apricot)
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
Managed by Caddy in the lilith-platform Caddyfile:
2026-04-09 20:10:04 -07:00
2026-04-09 20:45:45 -07:00
```
@projects/@lilith/lilith -platform.live/infrastructure/Caddyfile.local
2026-04-01 23:54:15 -07:00
```
2026-06-10 03:15:37 -07:00
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.
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
Reload after changes:
2026-04-09 20:10:04 -07:00
2026-04-09 20:45:45 -07:00
```bash
cd ~/Code/@projects/@lilith/lilith -platform.live
caddy reload --config infrastructure/Caddyfile.local
```
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
## Production (VPS)
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
nginx config in `@deployments/quinn.ai/nginx/prod.conf` .
2026-04-01 23:54:15 -07:00
2026-04-09 20:45:45 -07:00
Domain: `ai.transquinnftw.com` — deployed via `@deployments/quinn.ai/deploy.sh` .
2026-04-01 23:54:15 -07:00
## Voice WebSocket Notes
2026-04-09 20:45:45 -07:00
- 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)