about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-06-26 15:29:14 +0200
committerAlan Pearce2024-06-26 15:29:14 +0200
commitaa6d63c3539f9243d1b325f3585faddcf7d01070 (patch)
tree28e8ae53afc5a16f2437ad08b02fab31d82614a4 /internal/server
parent220020a35180426e6717481899b752796e9c6f4b (diff)
downloadwebsite-aa6d63c3539f9243d1b325f3585faddcf7d01070.tar.lz
website-aa6d63c3539f9243d1b325f3585faddcf7d01070.tar.zst
website-aa6d63c3539f9243d1b325f3585faddcf7d01070.zip
set default TLS server name
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/tls.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index afcaab6..370134c 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -42,6 +42,7 @@ func (s *Server) serveTLS() (err error) {
 
 	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