mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-07 23:32:53 +02:00
update central controller readme with config block
This commit is contained in:
parent
0753556aa3
commit
70f9fe0412
1 changed files with 33 additions and 1 deletions
|
@ -53,4 +53,36 @@ cmake --build build/ --target all -j8 --verbose
|
||||||
|
|
||||||
## Packaging via Docker
|
## Packaging via Docker
|
||||||
|
|
||||||
TODO: write me
|
TODO: write me
|
||||||
|
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Central Controller has new configuration options outside of the normal "settings" block of `local.conf`.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"settings": {
|
||||||
|
...standard zt1 local.conf settings...
|
||||||
|
},
|
||||||
|
"controller": {
|
||||||
|
"listenMode": (pgsql|redis|pubsub),
|
||||||
|
"statusMode": (pgsql|redis|bigtable),
|
||||||
|
"redis": {
|
||||||
|
"hostname": ...,
|
||||||
|
"port": 6379,
|
||||||
|
"clusterMode": true
|
||||||
|
},
|
||||||
|
"pubsub": {
|
||||||
|
"project_id": <gcp-project-id>
|
||||||
|
},
|
||||||
|
"bigtable": {
|
||||||
|
"project_id": <gcp-project-id>,
|
||||||
|
"instance_id": <bigtable-instance-id>,
|
||||||
|
"table_id": <bigtable-table-id>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration checks for invalid configurations like `listenMode = "pubsub"`, but without a `"pubsub"` config block.
|
||||||
|
|
Loading…
Add table
Reference in a new issue