Skip to content

Commit 5532b64

Browse files
accept TOS based on config option
1 parent 093d5ed commit 5532b64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/web_letsencrypt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ import (
1717

1818
func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) error {
1919

20-
// if HTTP Challenge enabled, needs to be serving on port 80. For TLSALPN needs 443
21-
// due to docker port mapping this can't be checked programatically
20+
// If HTTP Challenge enabled, needs to be serving on port 80. For TLSALPN needs 443.
21+
// Due to docker port mapping this can't be checked programatically
2222
// TODO: these are placeholders until we add options for each in settings with appropriate warning
2323
enableHTTPChallenge := true
2424
enableTLSALPNChallenge := false // set to false as this is default prior to using certmagic
2525

2626
magic := certmagic.NewDefault()
2727
myACME := certmagic.NewACMEManager(magic, certmagic.ACMEManager{
2828
Email: email,
29-
Agreed: true,
29+
Agreed: setting.LetsEncryptTOS,
3030
DisableHTTPChallenge: !enableHTTPChallenge,
3131
DisableTLSALPNChallenge: !enableTLSALPNChallenge,
3232
Storage: &certmagic.FileStorage{Path: directory},

0 commit comments

Comments
 (0)