90 lines
3.3 KiB
JavaScript
90 lines
3.3 KiB
JavaScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
(function (window) {
|
|
window['env'] = window['env'] || {};
|
|
|
|
// BackEnd Environment variables
|
|
window['env']['fineractApiUrls'] = '$FINERACT_API_URLS';
|
|
|
|
window['env']['fineractApiUrl'] = '$FINERACT_API_URL';
|
|
|
|
window['env']['apiProvider'] = '$FINERACT_API_PROVIDER';
|
|
|
|
window['env']['apiVersion'] = '$FINERACT_API_VERSION';
|
|
|
|
window['env']['apiActuator'] = '$FINERACT_API_ACTUATOR';
|
|
|
|
window['env']['fineractPlatformTenantId'] = '$FINERACT_PLATFORM_TENANT_IDENTIFIER';
|
|
|
|
window['env']['fineractPlatformTenantIds'] = '$FINERACT_PLATFORM_TENANTS_IDENTIFIER';
|
|
|
|
window['env']['tenantLogoUrl'] = '$TENANT_LOGO_URL';
|
|
|
|
// Language Environment variables
|
|
window['env']['defaultLanguage'] = '$MIFOS_DEFAULT_LANGUAGE';
|
|
|
|
window['env']['supportedLanguages'] = '$MIFOS_SUPPORTED_LANGUAGES';
|
|
|
|
window['env']['preloadClients'] = '$MIFOS_PRELOAD_CLIENTS';
|
|
|
|
// Char delimiter to Export CSV options: ',' ';' '|' ' '
|
|
window['env']['defaultCharDelimiter'] = '$MIFOS_DEFAULT_CHAR_DELIMITER';
|
|
|
|
// Display or not the Server Selector
|
|
window['env']['allowServerSwitch'] = '$MIFOS_ALLOW_SERVER_SWITCH_SELECTOR';
|
|
|
|
// Display or not the BackEnd Info
|
|
window['env']['displayBackEndInfo'] = '$MIFOS_DISPLAY_BACKEND_INFO';
|
|
|
|
// Display or not the Tenant Selector
|
|
window['env']['displayTenantSelector'] = '$MIFOS_DISPLAY_TENANT_SELECTOR';
|
|
|
|
// Documentation base URL for in-app help links
|
|
window['env']['documentationBaseUrl'] = '$MIFOS_DOCUMENTATION_BASE_URL';
|
|
|
|
// Time in seconds for Notifications, default 60 seconds
|
|
window['env']['waitTimeForNotifications'] = '$MIFOS_WAIT_TIME_FOR_NOTIFICATIONS';
|
|
|
|
// Time in seconds for COB Catch-Up, default 30 seconds
|
|
window['env']['waitTimeForCOBCatchUp'] = '$MIFOS_WAIT_TIME_FOR_CATCHUP';
|
|
|
|
// Time in milliseconds for Session idle timeout, default 300000 seconds
|
|
window['env']['sessionIdleTimeout'] = '$MIFOS_SESSION_IDLE_TIMEOUT';
|
|
|
|
// OAuth Server Enabled
|
|
window['env']['oauthServerEnabled'] = '$MIFOS_OAUTH_SERVER_ENABLED';
|
|
|
|
// OAuth Server URL
|
|
window['env']['oauthServerUrl'] = '$MIFOS_OAUTH_SERVER_URL';
|
|
|
|
// OAuth Client Id
|
|
window['env']['oauthAppId'] = '$MIFOS_OAUTH_CLIENT_ID';
|
|
|
|
// Min Password length
|
|
window['env']['minPasswordLength'] = '$MIFOS_MIN_PASSWORD_LENGTH';
|
|
|
|
// Enable or Disable HTTP Cache
|
|
window['env']['httpCacheEnabled'] = '$MIFOS_HTTP_CACHE_ENABLED';
|
|
|
|
// Hide client data (mask names)
|
|
window['env']['complianceHideClientData'] = '$MIFOS_COMPLIANCE_HIDE_CLIENT_DATA';
|
|
|
|
window['env']['vNextApiUrl'] = '$VNEXT_API_URL';
|
|
window['env']['vNextApiProvider'] = '$VNEXT_API_PROVIDER';
|
|
window['env']['vNextApiVersion'] = '$VNEXT_API_VERSION';
|
|
window['env']['interbankTransfers'] = '$VNEXT_INTERBANK_TRANSFERS';
|
|
|
|
// OIDC Plugin Environment variables
|
|
window['env']['oidcServerEnabled'] = '$FINERACT_PLUGIN_OIDC_ENABLED';
|
|
window['env']['oidcBaseUrl'] = '$FINERACT_PLUGIN_OIDC_BASE_URL';
|
|
window['env']['oidcClientId'] = '$FINERACT_PLUGIN_OIDC_CLIENT_ID';
|
|
window['env']['oidcApiUrl'] = '$FINERACT_PLUGIN_OIDC_API_URL';
|
|
window['env']['oidcFrontUrl'] = '$FINERACT_PLUGIN_OIDC_FRONTEND_URL';
|
|
})(this);
|