mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 11:03:43 +07:00
Add support for LE expiration notification e-mails on API cert (#227)
This commit is contained in:
parent
19069f50ec
commit
035a219f9f
@ -274,6 +274,8 @@ tls_cert_privkey = "/etc/tls/example.org/privkey.pem"
|
||||
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
||||
# only used if tls = "letsencrypt"
|
||||
acme_cache_dir = "api-certs"
|
||||
# optional e-mail address to which Let's Encrypt will send expiration notices for the API's cert
|
||||
notification_email = ""
|
||||
# CORS AllowOrigins, wildcards can be used
|
||||
corsorigins = [
|
||||
"*"
|
||||
|
@ -43,6 +43,8 @@ tls_cert_privkey = "/etc/tls/example.org/privkey.pem"
|
||||
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
||||
# only used if tls = "letsencrypt"
|
||||
acme_cache_dir = "api-certs"
|
||||
# optional e-mail address to which Let's Encrypt will send expiration notices for the API's cert
|
||||
notification_email = ""
|
||||
# CORS AllowOrigins, wildcards can be used
|
||||
corsorigins = [
|
||||
"*"
|
||||
|
1
main.go
1
main.go
@ -149,6 +149,7 @@ func startHTTPAPI(errChan chan error, config DNSConfig, dnsservers []*DNSServer)
|
||||
DNSProvider: &provider,
|
||||
DNSChallengeOption: dnsopts,
|
||||
DefaultServerName: Config.General.Domain,
|
||||
Email: Config.API.NotificationEmail,
|
||||
Storage: &storage,
|
||||
}
|
||||
|
||||
|
1
types.go
1
types.go
@ -51,6 +51,7 @@ type httpapi struct {
|
||||
TLSCertPrivkey string `toml:"tls_cert_privkey"`
|
||||
TLSCertFullchain string `toml:"tls_cert_fullchain"`
|
||||
ACMECacheDir string `toml:"acme_cache_dir"`
|
||||
NotificationEmail string `toml:"notification_email"`
|
||||
CorsOrigins []string
|
||||
UseHeader bool `toml:"use_header"`
|
||||
HeaderName string `toml:"header_name"`
|
||||
|
Loading…
Reference in New Issue
Block a user