Add support for TURN static auth secret credentials (#3796)

Closes https://github.com/livekit/livekit/issues/2245
This commit is contained in:
Jade Ellis
2025-12-18 14:16:38 +05:30
committed by GitHub
parent 24559a2853
commit 47c86be1df
3 changed files with 38 additions and 2 deletions
+6
View File
@@ -141,6 +141,12 @@ type TURNServer struct {
Protocol string `yaml:"protocol,omitempty"`
Username string `yaml:"username,omitempty"`
Credential string `yaml:"credential,omitempty"`
// Secret is used for TURN static auth secrets mechanism. When provided,
// dynamic credentials are generated using HMAC-SHA1 instead of static Username/Credential
Secret string `yaml:"secret,omitempty"`
// TTL is the time-to-live in seconds for generated credentials when using Secret.
// Defaults to 14400 seconds (4 hours) if not specified
TTL int `yaml:"ttl,omitempty"`
}
type CongestionControlConfig struct {