Allow serving everything beneath a baseUrl with a path.
See: https://github.com/freifunkhamburg/ffffng/issues/44
This commit is contained in:
parent
3d6fb5feec
commit
8de06a0a8a
14 changed files with 85 additions and 55 deletions
server
|
@ -38,7 +38,8 @@ angular.module('ffffng').factory('Logger', function (app) {
|
|||
app.use(scribe.express.logger());
|
||||
}
|
||||
if (config.server.internal.active) {
|
||||
app.use('/internal/logs', scribe.webPanel());
|
||||
var prefix = config.server.rootPath === '/' ? '' : config.server.rootPath;
|
||||
app.use(prefix + '/internal/logs', scribe.webPanel());
|
||||
}
|
||||
|
||||
return process.console;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue