live-sfu-demo/.env.example

23 lines
583 B
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
# 后端顺序(主 SFU 在前):cloudflare 优先,srs 本地对照
SFU_PROVIDER=cloudflare,srs
# SRS(本地对照后端:docker compose up -d srs)
SRS_API_BASE=http://localhost:1985
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
# 推流 JWT(SRS 入口鉴权,可选;设为 1 后 WHIP 必须带有效 token)
DEMO_TOKEN_SECRET=
SFU_TOKEN_REQUIRED=0