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:
parent
29131880d9
commit
2349e62a0c
14
webapp.js
14
webapp.js
|
@ -130,7 +130,21 @@ const app = async (orm) => {
|
|||
if (settings.webroot) {
|
||||
console.log(`Running with base URL: ${settings.webroot}`);
|
||||
}
|
||||
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) => {
|
||||
|
|
Loading…
Reference in New Issue