reverseproxy: async'ify
This commit is contained in:
@@ -668,7 +668,8 @@ function configureMail(mailFqdn, mailDomain, serviceConfig, callback) {
|
||||
const memory = system.getMemoryAllocation(memoryLimit);
|
||||
const cloudronToken = hat(8 * 128), relayToken = hat(8 * 128);
|
||||
|
||||
reverseProxy.getCertificatePath(mailFqdn, mailDomain, function (error, bundle) {
|
||||
const getCertificatePath = util.callbackify(reverseProxy.getCertificatePath);
|
||||
getCertificatePath(mailFqdn, mailDomain, function (error, bundle) {
|
||||
if (error) return callback(error);
|
||||
|
||||
const dhparamsFilePath = path.join(paths.ADDON_CONFIG_DIR, 'mail/dhparams.pem');
|
||||
|
||||
Reference in New Issue
Block a user