Configure self-hosted STUN for remote WebRTC
This commit is contained in:
@@ -38,9 +38,13 @@ AUTH_TOKEN_EXPIRE_MINUTES = int(os.getenv("AUTH_TOKEN_EXPIRE_MINUTES", "1440"))
|
||||
AUTH_COOKIE_SECURE = os.getenv("AUTH_COOKIE_SECURE", "false").lower() == "true"
|
||||
AUTH_COOKIE_SAMESITE = os.getenv("AUTH_COOKIE_SAMESITE", "lax")
|
||||
|
||||
# ---- WebRTC TURN ----
|
||||
# ---- WebRTC STUN / TURN ----
|
||||
# Override STUN_URL in remote deployments to use the colocated coturn server
|
||||
# instead of waiting for a public STUN service that may be unreachable.
|
||||
STUN_URL = os.getenv("STUN_URL", "stun:stun.l.google.com:19302")
|
||||
|
||||
# TURN_URLS example:
|
||||
# turn:182.92.86.220:3478?transport=udp,turn:182.92.86.220:3478?transport=tcp
|
||||
# turn:118.89.89.89:3478?transport=udp,turn:118.89.89.89:3478?transport=tcp
|
||||
TURN_URLS = _split(os.getenv("TURN_URLS", ""))
|
||||
TURN_SECRET = os.getenv("TURN_SECRET", "")
|
||||
TURN_USERNAME = os.getenv("TURN_USERNAME", "")
|
||||
|
||||
Reference in New Issue
Block a user