mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-21 13:17:55 +07:00
Make ACME cache directory location configurable (#81)
* Remove trailing whitespace from README and config * Make ACME cache directory location configurable
This commit is contained in:

committed by
Joona Hoikkala

parent
fde566fe67
commit
3006cb712b
2
main.go
2
main.go
@ -81,7 +81,7 @@ func startHTTPAPI() {
|
||||
switch Config.API.TLS {
|
||||
case "letsencrypt":
|
||||
m := autocert.Manager{
|
||||
Cache: autocert.DirCache("api-certs"),
|
||||
Cache: autocert.DirCache(Config.API.ACMECacheDir),
|
||||
Prompt: autocert.AcceptTOS,
|
||||
HostPolicy: autocert.HostWhitelist(Config.API.Domain),
|
||||
}
|
||||
|
Reference in New Issue
Block a user