all repos — website @ aa6d63c3539f9243d1b325f3585faddcf7d01070

My website

set default TLS server name
Alan Pearce alan@alanpearce.eu
Wed, 26 Jun 2024 15:29:14 +0200
commit

aa6d63c3539f9243d1b325f3585faddcf7d01070

parent

220020a35180426e6717481899b752796e9c6f4b

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M internal/server/tls.gointernal/server/tls.go
@@ -42,6 +42,7 @@ } 
 	certmagic.DefaultACME.Agreed = true
 	certmagic.DefaultACME.Email = s.config.Email
+	certmagic.Default.DefaultServerName = s.config.Domains[0]
 	certmagic.HTTPPort = s.runtimeConfig.Port
 	certmagic.HTTPSPort = s.runtimeConfig.TLSPort