Open stanislavprokopov opened 1 year ago
Also having this issue :( Is there a working example configuration someone is using with acme?
I was able to get it working with following config.
tls {
loader acme {
hostname $(hostname)
email email@somehost.com
agreed # indicate your agreement with Let's Encrypt ToS
challenge dns-01
dns digitalocean {
api_token "api-key"
}
}
}
Is this a global tls configuration? So no tls &local_tls
is required?
yes
Can confirm the example in the documentation gives unknown config block: local_tls
error but the snippet in https://github.com/foxcpp/maddy/issues/577#issuecomment-1544471940 works. I guess the fix would be to update the example in the documentation.
I used a similar example to the documentation, but called named it acme_tls
instead of local_tls
throughout the config file and it worked.
Describe the bug
Cannot run maddy with tls.loader.acme in config, getting "unknown config block: local_tls" error on start.
Steps to reproduce
tls file /etc/maddy/certs/$(hostname)/fullchain.pem /etc/maddy/certs/$(hostname)/privkey.pem
withthis is taken from
https://maddy.email/reference/tls-acme/
Log files
unknown config block: local_tls
Configuration file
see above in steps
Environment information