about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-01-05 12:32:58 +0100
committerAlan Pearce2025-01-05 12:32:58 +0100
commite2b10dee160b5b1a7e06dfb34c137d2a43bccd91 (patch)
tree096e96c8658e4c32c35fc28fb8242070d98067f4
parent3ba6a311435bbb114b46fee8625dbab87c8a3e4c (diff)
downloadwebsite-e2b10dee160b5b1a7e06dfb34c137d2a43bccd91.tar.lz
website-e2b10dee160b5b1a7e06dfb34c137d2a43bccd91.tar.zst
website-e2b10dee160b5b1a7e06dfb34c137d2a43bccd91.zip
tls: fix certmagic non-DNS challenges HEAD main
-rw-r--r--internal/server/tls.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index 1e18001..f51d36a 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -33,15 +33,15 @@ func (s *Server) serveTLS() (err error) {
 	wildcardDomain := "*." + s.config.WildcardDomain
 	certificateDomains := slices.Clone(s.config.Domains)
 
+	certmagic.HTTPPort = s.runtimeConfig.Port
+	certmagic.HTTPSPort = s.runtimeConfig.TLSPort
 	certmagic.Default.Logger = log.GetLogger().Named("certmagic")
 	cfg := certmagic.NewDefault()
 
-	acme := certmagic.DefaultACME
+	acme := &certmagic.DefaultACME
 	acme.Agreed = true
 	acme.Email = s.config.Email
 	acme.ListenHost = s.runtimeConfig.ListenAddress
-	acme.AltHTTPPort = s.runtimeConfig.Port
-	acme.AltTLSALPNPort = s.runtimeConfig.TLSPort
 
 	if s.runtimeConfig.Development {
 		ca := s.runtimeConfig.ACMECA