diff options
author | Alan Pearce | 2024-06-26 15:29:14 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-26 15:29:14 +0200 |
commit | aa6d63c3539f9243d1b325f3585faddcf7d01070 (patch) | |
tree | 28e8ae53afc5a16f2437ad08b02fab31d82614a4 | |
parent | 220020a35180426e6717481899b752796e9c6f4b (diff) | |
download | website-aa6d63c3539f9243d1b325f3585faddcf7d01070.tar.lz website-aa6d63c3539f9243d1b325f3585faddcf7d01070.tar.zst website-aa6d63c3539f9243d1b325f3585faddcf7d01070.zip |
set default TLS server name
-rw-r--r-- | internal/server/tls.go | 1 |
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 |