diff --git a/src/reverseproxy.js b/src/reverseproxy.js index 6d9619680..a1337352c 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -14,7 +14,6 @@ exports = module.exports = { renewCerts, // the 'configure' ensure a certificate and generate nginx config - configureAdmin, configureApp, unconfigureApp, @@ -421,24 +420,6 @@ function writeDashboardNginxConfig(bundle, configFileName, vhost, callback) { reload(callback); } -function configureAdmin(domain, auditSource, callback) { - assert.strictEqual(typeof domain, 'string'); - assert.strictEqual(typeof auditSource, 'object'); - assert.strictEqual(typeof callback, 'function'); - - domains.get(domain, function (error, domainObject) { - if (error) return callback(error); - - const adminFqdn = domains.fqdn(constants.ADMIN_LOCATION, domainObject); - - ensureCertificate(adminFqdn, domainObject.domain, auditSource, function (error, bundle) { - if (error) return callback(error); - - writeDashboardNginxConfig(bundle, `${adminFqdn}.conf`, adminFqdn, callback); - }); - }); -} - function writeDashboardConfig(domain, callback) { assert.strictEqual(typeof domain, 'string'); assert.strictEqual(typeof callback, 'function');