30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
// `.env.ts` is generated by the `npm run env` command
|
|
import env from './.env';
|
|
|
|
export const environment = {
|
|
production: true,
|
|
version: env.mifos_x.version,
|
|
hash: env.mifos_x.hash,
|
|
// For connecting to server running elsewhere update the tenant identifier
|
|
fineractPlatformTenantId: window['env']['fineractPlatformTenantId'] || 'default',
|
|
// For connecting to others servers running elsewhere update the base API URL
|
|
baseApiUrls: window['env']['fineractApiUrls'] ||
|
|
'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443',
|
|
// For connecting to server running elsewhere set the base API URL
|
|
baseApiUrl: window['env']['fineractApiUrl'] || 'https://demo.fineract.dev',
|
|
allowServerSwitch: env.allow_switching_backend_instance,
|
|
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
|
|
apiVersion: window['env']['apiVersion'] || '/v1',
|
|
serverUrl: '',
|
|
oauth: {
|
|
enabled: false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
|
|
serverUrl: ''
|
|
},
|
|
defaultLanguage: window['env']['defaultLanguage'] || 'en-US',
|
|
supportedLanguages: window['env']['supportedLanguages'] || 'en-US,es-MX,fr-FR'
|
|
};
|
|
|
|
// Server URL
|
|
environment.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}${environment.apiVersion}`;
|
|
environment.oauth.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}`;
|