admin interface shows up again

This commit is contained in:
AJ ONeal 2017-04-27 16:27:27 -06:00
parent dc55169415
commit 58a0b592ff
2 changed files with 7 additions and 9 deletions

View File

@ -209,7 +209,7 @@ module.exports = function (deps, conf) {
//, { token: token, refresh: refresh }); //, { token: token, refresh: refresh });
} }
} }
}); }, conf);
} }
app = express(); app = express();

View File

@ -3,7 +3,7 @@ module.exports.create = function (deps, conf) {
var path = require('path'); var path = require('path');
//var defaultServername = 'localhost.daplie.me'; //var defaultServername = 'localhost.daplie.me';
var defaultWebRoot = '.'; //var defaultWebRoot = '.';
var assetsPath = path.join(__dirname, '..', '..', 'packages', 'assets'); var assetsPath = path.join(__dirname, '..', '..', 'packages', 'assets');
var opts = /*conf.http ||*/ {}; var opts = /*conf.http ||*/ {};
@ -34,28 +34,26 @@ module.exports.create = function (deps, conf) {
opts.defaults = { opts.defaults = {
modules: [] modules: []
, paths: [ , paths: [
/*
{ $id: '/', modules: [ { $id: '/', modules: [
{ $id: 'serve', paths: [ defaultWebRoot ] } { $id: 'serve', paths: [ defaultWebRoot ] }
, { $id: 'indexes', paths: [ defaultWebRoot ] } , { $id: 'indexes', paths: [ defaultWebRoot ] }
] } ] }
*/
] ]
}; };
opts.sites.push({ opts.sites.push({
// greenlock: {} // greenlock: {}
$id: 'localhost.alpha.daplie.me' $id: 'localhost.alpha.daplie.me'
, paths: [ , paths: [
{ $id: '/', modules: [ { $id: '/', modules: [ { $id: 'serve', paths: [ path.resolve(__dirname, '..', '..', 'admin', 'public') ] } ] }
{ $id: 'serve', paths: [ path.resolve(__dirname, '..', 'admin', 'public') ] } , { $id: '/api/', modules: [ { $id: 'app', path: path.join(__dirname, 'admin') } ] }
] }
, { $id: '/api/', modules: [
{ $id: 'app', path: path.join(__dirname, 'admin') }
] }
] ]
}); });
opts.sites.push({ opts.sites.push({
$id: 'localhost.daplie.invalid' $id: 'localhost.daplie.invalid'
, paths: [ , paths: [
{ $id: '/', modules: [ { $id: 'serve', paths: [ path.resolve(__dirname, '..', 'admin', 'public') ] } ] } { $id: '/', modules: [ { $id: 'serve', paths: [ path.resolve(__dirname, '..', '..', 'admin', 'public') ] } ] }
, { $id: '/api/', modules: [ { $id: 'app', path: path.join(__dirname, 'admin') } ] } , { $id: '/api/', modules: [ { $id: 'app', path: path.join(__dirname, 'admin') } ] }
] ]
}); });