I have set up adguardhome-sync and it syncs properly. I set everything via yaml file.
Then I also wanted to set up metrics and tls, and none of these parameters seem to be taken into account.
The sync still works, but there is still no TLS configured on port 8080, still cleartext
There is nothing at /metrics (404)
certs and files exist
Seems like tls and metrics in yaml file are ignored, as the output with PRINT_CONFIG_ONLY=true seems to indicate.
AdguardHome-Sync Version
0.6.13
AdguardHome Version
0.107.54
OS Information
docker
Configuration
Via yaml only
# cron expression to run in daemon mode. (default; "" = runs only once)
cron: "0 */2 * * *"
# runs the synchronisation on startup
runOnStart: true
# If enabled, the synchronisation task will not fail on single errors, but will log the errors and continue
continueOnError: false
origin:
# url of the origin instance
url: https://dns1.my.domain
# apiPath: define an api path if other than "/control"
# insecureSkipVerify: true # disable tls check
username: admin
password: xxx
# replicas instances
replicas:
# url of the replica instance
- url: https://dns2.my.domain
username: admin
password: xxx
# Configure the sync API server, disabled if api port is 0
api:
# Port, default 8080
port: 8080
# if username and password are defined, basic auth is applied to the sync API
username: admin
password: xxx
# enable api dark mode
darkMode: true
# enable metrics on path '/metrics' (api port must be != 0)
metrics:
enabled: true
scrapeInterval: 30s
queryLogLimit: 10000
# enable tls for the api server
tls:
# the directory of the provided tls certs
certDir: /certs
# the name of the cert file (default: tls.crt)
certName: fullchain.pem
# the name of the key file (default: tls.key)
keyName: privkey.pem
# Configure sync features; by default all features are enabled.
features:
generalSettings: true
queryLogConfig: true
statsConfig: true
clientSettings: true
services: true
filters: true
dhcp:
serverConfig: true
staticLeases: true
dns:
serverConfig: true
accessLists: true
rewrites: true
docker compose file
services:
dns-sync:
image: ghcr.io/bakito/adguardhome-sync
container_name: dns-sync
command: run --config /config/adguardhome-sync.yaml
volumes:
- /my/docker/path/dns-sync/adguardhome-sync.yaml:/config/adguardhome-sync.yaml
- dns-sync-certs-live:/certs/live/dns-sync.my.domain
- dns-sync-certs-archive:/certs/archive/dns-sync.my.domain
environment:
TZ: Europe/Zurich
ports:
- 8080:8080
restart: unless-stopped
volumes:
dns-sync-certs-live:
name: dns-sync-certs-live
driver: local
driver_opts:
o: bind
type: none
device: /my/cert/path/certbot/etc-letsencrypt/live/dns-sync.my.domain
dns-sync-certs-archive:
name: dns-sync-certs-archive
driver: local
driver_opts:
o: bind
type: none
device: /my/cert/path/certbot/etc-letsencrypt/archive/dns-sync.my.domain
What happened?
I have set up adguardhome-sync and it syncs properly. I set everything via yaml file.
Then I also wanted to set up metrics and tls, and none of these parameters seem to be taken into account. The sync still works, but there is still no TLS configured on port 8080, still cleartext There is nothing at /metrics (404)
certs and files exist
Seems like tls and metrics in yaml file are ignored, as the output with PRINT_CONFIG_ONLY=true seems to indicate.
AdguardHome-Sync Version
0.6.13
AdguardHome Version
0.107.54
OS Information
docker
Configuration
Current Applied Configuration
Relevant log output
Anything else?
No response