diff --git a/src/reverseproxy.js b/src/reverseproxy.js index d8f318472..6ae21d54d 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -261,13 +261,13 @@ function getFallbackCertificate(domain, callback) { var certFilePath = path.join(paths.NGINX_CERT_DIR, `${domain}.host.cert`); var keyFilePath = path.join(paths.NGINX_CERT_DIR, `${domain}.host.key`); - if (fs.existsSync(certFilePath) && fs.existsSync(keyFilePath)) return callback(null, { certFilePath, keyFilePath, type: 'provisioned' }); + if (fs.existsSync(certFilePath) && fs.existsSync(keyFilePath)) return callback(null, { certFilePath, keyFilePath }); // check for auto-generated or user set fallback certs certFilePath = path.join(paths.APP_CERTS_DIR, `${domain}.host.cert`); keyFilePath = path.join(paths.APP_CERTS_DIR, `${domain}.host.key`); - callback(null, { certFilePath, keyFilePath, type: 'fallback' }); + callback(null, { certFilePath, keyFilePath }); } function setAppCertificateSync(location, domainObject, certificate) {