live-sfu-demo/.env.example

39 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# HTTP / gRPC 控制面端口
HTTP_PORT=8088
GRPC_PORT=9090
# 鉴权密钥(正式环境必填;缺失将拒绝启动)
JWT_SECRET=
# 可选:单独指定推流 JWT 签名密钥;留空则复用 JWT_SECRET
SFU_TOKEN_SECRET=
# 主干与分发:SRS 为唯一推流主干,分发按 DISTRIBUTORS 扇出
SFU_PROVIDER=cloudflare,srs
DISTRIBUTORS=srs-hls,cf,cdn
# 分发:第三方直播 CDN(RTMP 转推)
CDN_RTMP_URL=
CDN_NAME=cdn
# SRS(主干:唯一推流入口,docker compose up -d srs)
SRS_API_BASE=http://localhost:1985
SRS_HTTP_BASE=http://localhost:8080
SRS_APP=live
SRS_SECRET=
SRS_CANDIDATE=127.0.0.1
# Cloudflare Realtime(分发之一:SFU 低延时)
CF_APP_ID=
CF_APP_SECRET=
CF_BASE_URL=https://rtc.live.cloudflare.com/v1
CF_STUN_URL=stun:stun.cloudflare.com:3478
# 冷启动首个管理员(仅在用户库为空时生效;正式部署建议显式配置)
BOOTSTRAP_ADMIN_USER=
BOOTSTRAP_ADMIN_PASS=
# 嵌入式 libSQL(默认 DB,房间分发拓扑持久化)
# 仅支持嵌入 file: 模式,开箱即用,无需远端凭证
TURSO_DATABASE_URL=file:./data/sync-live.db?cache=shared&_journal_mode=WAL
# 兼容 DATABASE_URL
# DATABASE_URL=file:./data/sync-live.db?cache=shared&_journal_mode=WAL