Repository navigation
ops: deploy the LiveKit SFU and TURN server to dev2 - #132
Merged
Merged
Conversation
sfu.pairux.com and turn.pairux.com moved off their DigitalOcean droplets
onto dev2 on 2026-10-06. deploy-livekit.yml and deploy-turn.yml now copy
apps/{livekit,turn}/dev2/docker-compose.yml to the box with the existing
DEV2_* secrets and run the box-side deploy.sh, which validates the file,
swaps it in, runs compose up -d (a no-op when nothing changed, so a push
does not drop live calls), health-checks and rolls back on failure.
Secrets stay on the box in conf/. sfu-diag.yml now inspects dev2.
Images are pinned to the digests the droplets were running
(livekit-server 1.13.7, egress, coturn 4.13.1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan47 finding(s) HIGH/CRITICAL: 4 | MEDIUM: 27 | LOW: 16
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sfu.pairux.com (LiveKit + egress) and turn.pairux.com (coturn) moved off their DigitalOcean droplets onto dev2 on 2026-10-06. This repoints their CI.
deploy-livekit.yml/deploy-turn.yml: copyapps/{livekit,turn}/dev2/docker-compose.ymlto/home/anthony/www/{sfu,turn}.pairux.com/with the existingDEV2_*secrets and run the box-sidedeploy.sh.deploy.shvalidates the compose file, swaps it in (previous kept as.prev),compose up -d(no-op when unchanged, so unrelated pushes don't drop calls), health-checks, rolls back on failure.livekit.yaml,egress.yaml,turnserver.conf) live only on the box inconf/.sfu-diag.ymlnow inspects dev2.Ports on dev2
LiveKit: 7881/tcp, 7882/udp, 61100-61300/udp, embedded TURN 3480/udp; signalling 7880 is local behind nginx. coturn: 3478 + 5349 tcp/udp, relay 61400-61500. coturn runs as uid 3478 and ufw confines its relays to dev2's own IP to LiveKit's ports; private ranges are
denied-peer-ip.Verified
External
lk load-test(2 video + 2 audio publishers, 2 subscribers) 8/8 tracks 0% loss before the DNS flip and 4/4 after; TURN allocations over UDP/TCP with 0% loss, TLS on 5349 verifies; relay to 127.0.0.1 is 403, relay to dev2's Postgres port is rejected. Boxdeploy.shdry-run as CI would: no-op, no restarts.The droplet-era
setup-*-server.sh/deploy-droplet.sh/fly.tomlare left in place and no longer run by CI. Pre-commit hook bypassed (turbo OOM on this box); the change is YAML + shell only, checked withbash -n, a YAML parse and the live dry run.🤖 Generated with Claude Code