From cc9b43450c236180f9d0149598e79108dc04da32 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 5 May 2021 12:16:25 -0700 Subject: [PATCH] configureAdmin is never used --- src/reverseproxy.js | 19 ------------------- 1 file changed, 19 deletions(-) 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');