0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

tls: Use Let's Encrypt production endpoint

We're done testing this in staging
This commit is contained in:
Matthew Holt 2019-09-11 18:52:07 -06:00
parent fe389fcbd7
commit b4dce74e59
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -102,8 +102,10 @@ func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error {
// SetDefaults sets necessary values that are
// currently empty to their default values.
func (m *ACMEManagerMaker) SetDefaults() {
// TODO: Setting all these defaults might not be necessary
// since CertMagic should fill them in for us...
if m.CA == "" {
m.CA = certmagic.LetsEncryptStagingCA // certmagic.Default.CA // TODO: When not testing, switch to production CA
m.CA = certmagic.Default.CA
}
if m.Email == "" {
m.Email = certmagic.Default.Email