mirror of
https://github.com/mjl-/mox.git
synced 2024-12-25 16:03:48 +03:00
quickstart: for -existing-webserver, also tls key/cert placeholder for mail.$domain
unless mail.$domain is the mx hostname. after question about which tls certs are needed from robbo5000 on matrix
This commit is contained in:
parent
2255ebcf11
commit
5320ec1c5b
1 changed files with 4 additions and 0 deletions
|
@ -744,6 +744,7 @@ many authentication failures).
|
|||
hostbase := filepath.FromSlash("path/to/" + dnshostname.Name())
|
||||
mtastsbase := filepath.FromSlash("path/to/mta-sts." + domain.Name())
|
||||
autoconfigbase := filepath.FromSlash("path/to/autoconfig." + domain.Name())
|
||||
mailbase := filepath.FromSlash("path/to/mail." + domain.Name())
|
||||
public.TLS = &config.TLS{
|
||||
KeyCerts: []config.KeyCert{
|
||||
{CertFile: hostbase + "-chain.crt.pem", KeyFile: hostbase + ".key.pem"},
|
||||
|
@ -751,6 +752,9 @@ many authentication failures).
|
|||
{CertFile: autoconfigbase + "-chain.crt.pem", KeyFile: autoconfigbase + ".key.pem"},
|
||||
},
|
||||
}
|
||||
if mailbase != hostbase {
|
||||
public.TLS.KeyCerts = append(public.TLS.KeyCerts, config.KeyCert{CertFile: mailbase + "-chain.crt.pem", KeyFile: mailbase + ".key.pem"})
|
||||
}
|
||||
|
||||
fmt.Println(
|
||||
`Placeholder paths to TLS certificates to be provided by the existing webserver
|
||||
|
|
Loading…
Reference in a new issue