all: add starting service with Control D config

This commit is contained in:
Cuong Manh Le
2022-12-22 23:27:45 +07:00
committed by Cuong Manh Le
parent ec72af1916
commit 114ef9aad6
7 changed files with 216 additions and 23 deletions

View File

@@ -25,6 +25,8 @@ Usage:
Flags:
--base64_config string base64 encoded config
--cache_size int Enable cache with size items
--cd string Control D resolver uid
-c, --config string Path to config file
-d, --daemon Run as daemon
--domains strings list of domain to apply in a split DNS policy

15
docs/controld_config.md Normal file
View File

@@ -0,0 +1,15 @@
# Control D config
`ctrld` can build a Control D config and run with the specific resolver data.
For example:
```shell
ctrld run --cd p2
```
Above command will fetch the `p2` resolver data from Control D API and use that data for running `ctrld`:
- The resolver `doh` endpoint will be used as the primary upstream.
- The resolver `exclude` list will be used to create a rule policy which will steer them to the default OS resolver.
```