compose: WSS on API host via Traefik header routing#2
Conversation
Route WSS upgrades on the API hostname to obbyircd:8080 with priority 100; everything else on the same host falls through to obby-api. Lets a web client point at wss://<api-host> instead of needing a separate ws subdomain. Uses SERVICE_FQDN_OBBY_API on Coolify (substituted before label escaping); falls back to API_FQDN for raw docker-compose users.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe ChangesDocker Compose Configuration Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing — wiring belongs in Coolify per-app, not in the generic compose source. |
Lets web clients connect to wss:// instead of needing a separate ws subdomain. Traefik priority 100 + HeaderRegexp(
Upgrade,websocket) wins for WS upgrades; everything else continues to obby-api.Uses SERVICE_FQDN_OBBY_API on Coolify (substituted before label escape), falls back to API_FQDN env for raw docker-compose users.
Summary by CodeRabbit