mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Peer configuration management (#69)
* feature: add config properties to the SyncResponse of the management gRpc service * fix: lint errors * chore: modify management protocol according to the review notes * fix: management proto fields sequence * feature: add proper peer configuration to be synced * chore: minor changes * feature: finalize peer config management * fix: lint errors * feature: add management server config file * refactor: extract hosts-config to a separate file * refactor: review notes applied to correct file_store usage * refactor: extract management service configuration to a file * refactor: simplify management config
This commit is contained in:
@@ -16,9 +16,11 @@ docker run -d --name wiretrustee-management \
|
||||
-p 33073:33073 \
|
||||
-p 443:443 \
|
||||
-v /var/lib/wiretrustee/:/var/lib/wiretrustee/ \
|
||||
-v /etc/wiretrustee/:/etc/wiretrustee/ \
|
||||
wiretrustee/wiretrustee:management-v0.0.8-SNAPSHOT-079d35e-amd64 \
|
||||
--port 33073 \
|
||||
--datadir /var/lib/wiretrustee/ \
|
||||
--hosts-config /etc/wiretrustee/hosts-config.json \
|
||||
--letsencrypt-domain <YOUR-DOMAIN> \
|
||||
--log-level info
|
||||
```
|
||||
@@ -91,13 +93,47 @@ Certificate:
|
||||
docker run -d --name wiretrustee-management \
|
||||
-p 33073:33073 \
|
||||
-v /var/lib/wiretrustee/:/var/lib/wiretrustee/ \
|
||||
-v /etc/wiretrustee/:/etc/wiretrustee/ \
|
||||
wiretrustee/wiretrustee:management-v0.0.8-SNAPSHOT-079d35e-amd64 \
|
||||
--port 33073 \
|
||||
--datadir /var/lib/wiretrustee/ \
|
||||
--hosts-config /etc/wiretrustee/hosts-config.json \
|
||||
--letsencrypt-domain app.wiretrustee.com \
|
||||
--log-level debug
|
||||
```
|
||||
|
||||
### hosts-config.json file example:
|
||||
|
||||
```json
|
||||
{
|
||||
"Stuns": [
|
||||
{
|
||||
"Proto": 2,
|
||||
"Host": "stun.wiretrustee.com",
|
||||
"Port": 3468,
|
||||
"Username": "",
|
||||
"Password": null
|
||||
}
|
||||
],
|
||||
"Turns": [
|
||||
{
|
||||
"Proto": 2,
|
||||
"Host": "stun.wiretrustee.com",
|
||||
"Port": 3468,
|
||||
"Username": "some_user",
|
||||
"Password": "c29tZV9wYXNzd29yZA=="
|
||||
}
|
||||
],
|
||||
"Signal": {
|
||||
"Proto": 2,
|
||||
"Host": "signal.wiretrustee.com",
|
||||
"Port": 10000,
|
||||
"Username": "",
|
||||
"Password": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## For development purposes:
|
||||
|
||||
Install golang gRpc tools:
|
||||
|
||||
Reference in New Issue
Block a user