mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 08:44:07 +01:00
0c039274a4
This update adds new relay integration for NetBird clients. The new relay is based on web sockets and listens on a single port. - Adds new relay implementation with websocket with single port relaying mechanism - refactor peer connection logic, allowing upgrade and downgrade from/to P2P connection - peer connections are faster since it connects first to relay and then upgrades to P2P - maintains compatibility with old clients by not using the new relay - updates infrastructure scripts with new relay service
45 lines
1.0 KiB
JSON
45 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
|
|
},
|
|
"Relay": {
|
|
"Addresses": [
|
|
"localhost:0"
|
|
],
|
|
"CredentialsTTL": "1h",
|
|
"Secret": "b29tZV9wYXNzd29yZA=="
|
|
},
|
|
"Signal": {
|
|
"Proto": "http",
|
|
"URI": "signal.wiretrustee.com:10000",
|
|
"Username": "",
|
|
"Password": null
|
|
},
|
|
"DataDir": "",
|
|
"HttpConfig": {
|
|
"LetsEncryptDomain": "<PASTE YOUR LET'S ENCRYPT DOMAIN HERE>",
|
|
"Address": "0.0.0.0:33071",
|
|
"AuthIssuer": "<PASTE YOUR AUTH0 ISSUER HERE>,",
|
|
"AuthAudience": "<PASTE YOUR AUTH0 AUDIENCE HERE>",
|
|
"AuthKeysLocation": "<PASTE YOUR AUTH0 PUBLIC JWT KEYS LOCATION HERE>"
|
|
}
|
|
}
|