Fix reverseProxy.getCertificate API

This commit is contained in:
Girish Ramakrishnan
2018-12-19 14:20:48 -08:00
parent 4a34703cd3
commit b5b20452cc
2 changed files with 8 additions and 7 deletions

View File

@@ -556,7 +556,7 @@ function restartMail(callback) {
const cloudronToken = hat(8 * 128);
// admin and mail share the same certificate
reverseProxy.getCertificate({ fqdn: config.adminFqdn(), domain: config.adminDomain() }, function (error, bundle) {
reverseProxy.getCertificate(config.adminFqdn(), config.adminDomain(), function (error, bundle) {
if (error) return callback(error);
// the setup script copies dhparams.pem to /addons/mail