From d0bf198e7b3a5601ecc5714fbc3f87b7aba84559 Mon Sep 17 00:00:00 2001 From: ttingle-ch Date: Thu, 9 Jan 2025 10:00:57 +0000 Subject: [PATCH] Updating CDN for stylesheets --- src/app.ts | 4 ++-- src/utils/properties.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 2eb7e59e..5ed91ce1 100755 --- a/src/app.ts +++ b/src/app.ts @@ -11,7 +11,7 @@ import { APPLICATION_NAME, CDN_URL_CSS, CDN_URL_JS, - CDN_HOST, + ANY_PROTOCOL_CDN_HOST, CHS_URL, PIWIK_URL, PIWIK_SITE_ID, @@ -46,7 +46,7 @@ app.set("views", path.join(__dirname, "views")); app.set("view engine", "njk"); nunjucksEnv.addGlobal("cdnUrlCss", CDN_URL_CSS); nunjucksEnv.addGlobal("cdnUrlJs", CDN_URL_JS); -nunjucksEnv.addGlobal("cdnHost", CDN_HOST); +nunjucksEnv.addGlobal("cdnHost", ANY_PROTOCOL_CDN_HOST); nunjucksEnv.addGlobal("chsUrl", CHS_URL); nunjucksEnv.addGlobal("chsMonitorGuiUrl", CHS_MONITOR_GUI_URL); nunjucksEnv.addGlobal("SERVICE_NAME", APPLICATION_NAME); diff --git a/src/utils/properties.ts b/src/utils/properties.ts index 4cb77560..b3a0f21f 100644 --- a/src/utils/properties.ts +++ b/src/utils/properties.ts @@ -28,6 +28,8 @@ export const CDN_URL_JS = getEnvironmentValue("CDN_URL_JS", "false"); export const CDN_HOST = getEnvironmentValue("CDN_HOST", "false"); +export const ANY_PROTOCOL_CDN_HOST = getEnvironmentValue("ANY_PROTOCOL_CDN_HOST", "false"); + export const CHS_MONITOR_GUI_URL = getEnvironmentValue("CHS_MONITOR_GUI_URL"); // API Keys and Secrets