mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 11:33:48 +01:00
b17424d630
* abstract peer channel * remove wip code * refactor NewServer with Peer updates channel * feature: add TURN credentials manager * hmac logic * example test function * test: add TimeBasedAuthSecretsManager_GenerateCredentials test * test: make tests for now with hardcoded secret * test: add TimeBasedAuthSecretsManager_SetupRefresh test * test: add TimeBasedAuthSecretsManager_SetupRefresh test * test: add TimeBasedAuthSecretsManager_CancelRefresh test * feature: extract TURNConfig to the management config * feature: return hash based TURN credentials only on initial sync * feature: make TURN time based secret credentials optional Co-authored-by: mlsmaycon <mlsmaycon@gmail.com>
38 lines
1.0 KiB
JSON
38 lines
1.0 KiB
JSON
{
|
|
"Stuns": [
|
|
{
|
|
"Proto": "udp",
|
|
"URI": "stun:stun.wiretrustee.com:3468",
|
|
"Username": "",
|
|
"Password": null
|
|
}
|
|
],
|
|
"TURNConfig": {
|
|
"Turns": [
|
|
{
|
|
"Proto": "udp",
|
|
"URI": "turn:stun.wiretrustee.com:3468",
|
|
"Username": "some_user",
|
|
"Password": "c29tZV9wYXNzd29yZA=="
|
|
}
|
|
],
|
|
"CredentialsTTL": "1h",
|
|
"Secret": "c29tZV9wYXNzd29yZA==",
|
|
"TimeBasedCredentials": true
|
|
},
|
|
"Signal": {
|
|
"Proto": "http",
|
|
"URI": "signal.wiretrustee.com:10000",
|
|
"Username": "",
|
|
"Password": null
|
|
},
|
|
"DataDir": "",
|
|
"HttpConfig": {
|
|
"LetsEncryptDomain": "",
|
|
"Address": "0.0.0.0:3000",
|
|
"AuthDomain": "<PASTE YOUR AUTH0 DOMAIN HERE>",
|
|
"AuthClientId": "<PASTE YOUR AUTH0 CLIENT ID HERE>",
|
|
"AuthClientSecret": "<PASTE YOUR AUTH0 SECRET>",
|
|
"AuthCallback": "http://localhost:3000/callback"
|
|
}
|
|
} |