Fixes the production-proven P2P-to-SFU quality misrouting. Local full checks and independent P0/P1 review passed; the GitHub job did not start any steps.
53 lines
2.4 KiB
Bash
53 lines
2.4 KiB
Bash
# Application
|
|
# Use 127.0.0.1 instead when only a same-host reverse proxy should connect.
|
|
LISTEN_HOST=0.0.0.0
|
|
PORT=8787
|
|
# For LAN viewers, replace localhost with this computer's LAN address.
|
|
PUBLIC_BASE_URL=http://localhost:8787
|
|
# Include both the host browser origin and PUBLIC_BASE_URL when they differ.
|
|
ALLOWED_ORIGINS=http://localhost:8787
|
|
# Production-required site access secret. Local development/tests may leave it
|
|
# empty. A non-empty value must contain 8-128 visible ASCII bytes (0x21-0x7e).
|
|
SITE_ACCESS_PASSWORD=
|
|
# Dormant rooms remain resumable by the exact Host token for this lease.
|
|
# Active sharing does not expire.
|
|
ROOM_LEASE_SECONDS=86400
|
|
# Optional stable room authority. Leave empty for process-memory rooms. Use one
|
|
# access-restricted absolute local file path per application process; production
|
|
# activation requires a verified writable directory and database recovery procedure.
|
|
ROOM_DATABASE_PATH=
|
|
MAX_VIEWERS_PER_ROOM=8
|
|
# Bounded standard-WebRTC relay/SFU controller for every room when true.
|
|
# Keep false outside measured tests.
|
|
PEER_ASSISTED_MEDIA=false
|
|
# One steady outbound media-copy capacity for every non-server endpoint.
|
|
# A peer child or Host SFU publication consumes one copy. Valid values: 1, 2, 3.
|
|
ENDPOINT_MEDIA_COPY_CAPACITY=2
|
|
# During pre-release route canaries, this enables sanitized room/ordinal events.
|
|
# NODE_DEBUG=screener-route
|
|
|
|
# Optional automatic SFU fallback. Set PEER_ASSISTED_MEDIA=true and supply all
|
|
# four values together; leaving them empty keeps LiveKit completely dormant.
|
|
# Ingress uses the 9000-room code capacity; egress uses that capacity times the
|
|
# configured per-room Viewer admission.
|
|
# Production requires wss and an independent API secret of 32+ bytes.
|
|
LIVEKIT_URL=
|
|
LIVEKIT_API_URL=
|
|
LIVEKIT_API_KEY=
|
|
LIVEKIT_API_SECRET=
|
|
|
|
# Ordinary peer ICE discovery. Production requires at least one STUN URL.
|
|
# Separate multiple URLs with commas.
|
|
STUN_URLS=
|
|
|
|
# Minimal production example (use independent untracked secrets):
|
|
# SITE_ACCESS_PASSWORD=replace-with-an-independent-access-key
|
|
# STUN_URLS=stun:stun.example.com:3478
|
|
# Automatic SFU fallback (requires PEER_ASSISTED_MEDIA=true and does not
|
|
# replace STUN above):
|
|
# LIVEKIT_URL=wss://share.example.com
|
|
# LIVEKIT_API_URL=http://127.0.0.1:7880
|
|
# LIVEKIT_API_KEY=replace-with-a-livekit-api-key
|
|
# LIVEKIT_API_SECRET=replace-with-at-least-32-independent-random-bytes
|
|
# ENDPOINT_MEDIA_COPY_CAPACITY=2
|