Make reverseProxy.configureAdmin not use config

This way we can set things up before modifying config for dashboard switch
This commit is contained in:
Girish Ramakrishnan
2018-12-13 21:42:47 -08:00
parent 3137dbec33
commit f0dbf2fc4d
3 changed files with 12 additions and 5 deletions

View File

@@ -295,7 +295,7 @@ function configureWebadmin(callback) {
function configureReverseProxy(error) {
debug('configureReverseProxy: error %j', error || null);
reverseProxy.configureAdmin({ userId: null, username: 'setup' }, function (error) {
reverseProxy.configureAdmin(config.adminDomain(), { userId: null, username: 'setup' }, function (error) {
debug('configureWebadmin: done error: %j', error || {});
gWebadminStatus.configuring = false;