Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

fixed bug

Jackab5aecd7541e
diff --git a/core/internal/service/domains/ssl.go b/core/internal/service/domains/ssl.go
index 07baa8af..ef1b5ef8 100644
--- a/core/internal/service/domains/ssl.go
+++ b/core/internal/service/domains/ssl.go
@@ -96,6 +96,8 @@ func ApplyCertToService(domain, crtPem, keyPem string) (err error) {
return err
}
+ UpdateBaseURL()
+
// Attempt apply the certificate to the console panel if domain is the console domain
rawurl := GetBaseURL()
@@ -105,6 +107,9 @@ func ApplyCertToService(domain, crtPem, keyPem string) (err error) {
return err
}
+ g.Log().Debug(context.Background(), "HostName: ", u.Hostname())
+ g.Log().Debug(context.Background(), "ssl domain: ", public.FormatMX(domain))
+
if u.Hostname() == public.FormatMX(domain) {
_, err = public.WriteFile(public.AbsPath(filepath.Join(consts.SSL_PATH, "cert.pem")), crtPem)