From aa6d63c3539f9243d1b325f3585faddcf7d01070 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 26 Jun 2024 15:29:14 +0200 Subject: set default TLS server name --- internal/server/tls.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal') 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 -- cgit 1.4.1