add flags for enabling notifications for product updates & new releases

This commit is contained in:
Fred KISSIE
2025-11-08 00:51:56 +01:00
parent 94e1c534ca
commit 579a4e1021
6 changed files with 112 additions and 60 deletions

View File

@@ -89,6 +89,16 @@ export class Config {
? "true"
: "false";
process.env.PRODUCT_UPDATES_NOTIFICATION_ENABLED = parsedConfig.app
.notifications.product_updates
? "true"
: "false";
process.env.NEW_RELEASES_NOTIFICATION_ENABLED = parsedConfig.app
.notifications.new_releases
? "true"
: "false";
if (parsedConfig.server.maxmind_db_path) {
process.env.MAXMIND_DB_PATH = parsedConfig.server.maxmind_db_path;
}