From eefbbf1e920764a0244f77a80262d9f682d34963 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Wed, 21 Jun 2023 08:13:48 +0000 Subject: Make ui configurable via environment variables Issue-ID: PORTALNG-4 Signed-off-by: Fiete Ostkamp Change-Id: I31b968cef23c7727cfd8cfb2ba65691745a0b8f3 --- src/assets/env.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/assets/env.js (limited to 'src/assets/env.js') diff --git a/src/assets/env.js b/src/assets/env.js new file mode 100644 index 0000000..154ed3b --- /dev/null +++ b/src/assets/env.js @@ -0,0 +1,10 @@ +(function(window) { + window["env"] = window["env"] || {}; + window["env"]["keycloak"] = window["env"]["keycloak"] || {}; + + // Environment variables + window["env"]["customStyleEnabled"]; + window["env"]["keycloak"]["hostname"]; + window["env"]["keycloak"]["realm"]; + window["env"]["keycloak"]["clientId"]; +})(this); -- cgit 1.2.3-korg