mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 23:43:44 +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"
|
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
||||||
# only used if tls = "letsencrypt"
|
# only used if tls = "letsencrypt"
|
||||||
acme_cache_dir = "api-certs"
|
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
|
# CORS AllowOrigins, wildcards can be used
|
||||||
corsorigins = [
|
corsorigins = [
|
||||||
"*"
|
"*"
|
||||||
|
@ -43,6 +43,8 @@ tls_cert_privkey = "/etc/tls/example.org/privkey.pem"
|
|||||||
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
||||||
# only used if tls = "letsencrypt"
|
# only used if tls = "letsencrypt"
|
||||||
acme_cache_dir = "api-certs"
|
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
|
# CORS AllowOrigins, wildcards can be used
|
||||||
corsorigins = [
|
corsorigins = [
|
||||||
"*"
|
"*"
|
||||||
|
1
main.go
1
main.go
@ -149,6 +149,7 @@ func startHTTPAPI(errChan chan error, config DNSConfig, dnsservers []*DNSServer)
|
|||||||
DNSProvider: &provider,
|
DNSProvider: &provider,
|
||||||
DNSChallengeOption: dnsopts,
|
DNSChallengeOption: dnsopts,
|
||||||
DefaultServerName: Config.General.Domain,
|
DefaultServerName: Config.General.Domain,
|
||||||
|
Email: Config.API.NotificationEmail,
|
||||||
Storage: &storage,
|
Storage: &storage,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
types.go
1
types.go
@ -51,6 +51,7 @@ type httpapi struct {
|
|||||||
TLSCertPrivkey string `toml:"tls_cert_privkey"`
|
TLSCertPrivkey string `toml:"tls_cert_privkey"`
|
||||||
TLSCertFullchain string `toml:"tls_cert_fullchain"`
|
TLSCertFullchain string `toml:"tls_cert_fullchain"`
|
||||||
ACMECacheDir string `toml:"acme_cache_dir"`
|
ACMECacheDir string `toml:"acme_cache_dir"`
|
||||||
|
NotificationEmail string `toml:"notification_email"`
|
||||||
CorsOrigins []string
|
CorsOrigins []string
|
||||||
UseHeader bool `toml:"use_header"`
|
UseHeader bool `toml:"use_header"`
|
||||||
HeaderName string `toml:"header_name"`
|
HeaderName string `toml:"header_name"`
|
||||||
|
Loading…
Reference in New Issue
Block a user