aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/portal-ng/components/portal-ng-ui/resources/assets/env.js
blob: 81a71c39d7123b8d3cdcf03f956b6e34b9d288a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
(function(window) {
  window["env"] = window["env"] || {};
  window["env"]["keycloak"] = window["env"]["keycloak"] || {};

  // Environment variables
  window["env"]["customStyleEnabled"] = "{{ .Values.env.CUSTOM_STYLE_ENABLED }}";
  window["env"]["keycloak"]["hostname"] = "{{ .Values.env.KEYCLOAK_EXTERNAL_URL }}";
  window["env"]["keycloak"]["realm"] = "{{ .Values.env.KEYCLOAK_REALM | default .Values.global.env.KEYCLOAK_REALM }}";
  window['env']['keycloak']['clientId'] = '{{ .Values.env.KEYCLOAK_CLIENT_ID }}';
  window["env"]["loggingEnabled"]= '{{ .Values.env.LOGGING_ENABLED }}';
})(this);