From aacffb1518ae9c79836ba3fef1f2187fce6dbe56 Mon Sep 17 00:00:00 2001 From: bakito Date: Sun, 28 Mar 2021 17:04:41 +0200 Subject: [PATCH] document config file --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a496846..ca04020 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,38 @@ adguardhome-sync run # run as daemon adguardhome-sync run --cron "*/10 * * * *" -``` \ No newline at end of file +``` + +### Config file + +location: $HOME/.adguardhome-sync.yaml + +```yaml +# cron expression to run in daemon mode. (default; "" = runs only once) +cron: "*/10 * * * *" + +origin: + # url of the origin instance + url: https://192.168.1.2:3000 + # apiPath: define an api path if other than "/control" + # insecureSkipVerify: true # disable tls check + username: username + password: password + +# replica instance (optional, if only one) +replica: + # url of the replica instance + url: http://192.168.1.3 + username: username + password: password + +# replicas instances (optional, if more than one) +replicas: + # url of the replica instance + - url: http://192.168.1.3 + username: username + password: password + - url: http://192.168.1.4 + username: username + password: password +```