diff --git a/config.default.json b/config.default.json index 988f0d4..0d123b9 100644 --- a/config.default.json +++ b/config.default.json @@ -1,5 +1,7 @@ { "aowowUrl": "https://wotlkdb.com", + "websiteUrl": "https://mywebsite.com", + "websiteName": "My Website", "loadDbcs": true, "hideGameMasters": true, "realms": [ diff --git a/src/armory/Armory.ts b/src/armory/Armory.ts index fb6b6c2..f4a8b62 100644 --- a/src/armory/Armory.ts +++ b/src/armory/Armory.ts @@ -75,6 +75,8 @@ export class Armory { this.logger.info("Starting server..."); app.locals.aowow = this.config.aowowUrl; + app.locals.websiteUrl = this.config.websiteUrl; + app.locals.websiteName = this.config.websiteName; app.engine(".html", handlebarsEngine({ extname: "html", partialsDir: path.join(process.cwd(), "static", "partials"), diff --git a/src/armory/Config.ts b/src/armory/Config.ts index 3dcf57d..a36904f 100644 --- a/src/armory/Config.ts +++ b/src/armory/Config.ts @@ -20,6 +20,8 @@ export interface IRealmConfig { export class Config { public aowowUrl: string; + public websiteUrl: string; + public websiteName: string; public loadDbcs: boolean; public hideGameMasters: boolean; public realms: IRealmConfig[]; diff --git a/static/error.html b/static/error.html index 9cef381..7fe2067 100644 --- a/static/error.html +++ b/static/error.html @@ -10,7 +10,7 @@
Back to Armory - Homepage + {{websiteName}} Homepage