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:
Andrew Meyer
2018-05-14 05:42:39 -05:00
committed by Joona Hoikkala
parent fde566fe67
commit 3006cb712b
4 changed files with 20 additions and 15 deletions

View File

@ -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),
}