Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 591 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 591 Bytes

certwatch

Tool to watch a caddy certmagic redis store, implemented via https://github.com/pberkel/caddy-storage-redis

to install:

$ go build
$ install -c certwatch /usr/local/sbin

Use a certwatch.service like this, replace your domains, services and redis url accordingly:

[Unit]
Description=Watch for cert changes and restart services

[Service]
ExecStart=/usr/local/sbin/certwatch -debug -redisurl redis://redis.tailXXXXX.ts.net -cmd="systemctl restart postfix dovecot coturn" mail.example.org imap.example.org turn.example.org

[Install]
WantedBy=multi-user.target