Update webapp output

- Add accessUrl warning if it doesn't contain webroot
- Output Authentication setting, if set
- Output Servers setting, if set, otherwise, output Custom Server, if set
This commit is contained in:
MagicalCodeMonkey 2020-04-27 08:52:34 -04:00
parent 29131880d9
commit 2349e62a0c
1 changed files with 15 additions and 1 deletions

View File

@ -130,7 +130,21 @@ const app = async (orm) => {
if (settings.webroot) { if (settings.webroot) {
console.log(`Running with base URL: ${settings.webroot}`); console.log(`Running with base URL: ${settings.webroot}`);
} }
console.log(`Access URL is ${settings.accessUrl}`); if(settings.accessUrl) {
console.log(`Access URL is ${settings.accessUrl}`);
if(settings.webroot && !settings.accessUrl.includes(settings.webroot)) {
console.log(`- WARNING: Your Access URL does not contain your webroot/WEBROOT setting: '${settings.webroot}'. Invite URLs may not work properly.`)
}
}
if(settings.authentication && settings.authentication.mechanism != 'none') {
console.log('Authentication:', settings.authentication);
}
if(settings.servers) {
console.log('Servers List:', settings.servers);
}
else if(settings.custom_server) {
console.log('Custom Server List:', settings.custom_server);
}
}; };
bootstrap().then((orm) => { bootstrap().then((orm) => {