Support same url with subdomain as backend server url
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
a41df49a3e
commit
3b714fee0c
@@ -12,7 +12,7 @@ export const environment = {
|
|||||||
baseApiUrls: window['env']['fineractApiUrls'] ||
|
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',
|
'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
|
// For connecting to server running elsewhere set the base API URL
|
||||||
baseApiUrl: window['env']['fineractApiUrl'] || 'https://demo.fineract.dev',
|
baseApiUrl: window['env']['fineractApiUrl'] || window.location.protocol + '://' + window.location.hostname,
|
||||||
allowServerSwitch: env.allow_switching_backend_instance,
|
allowServerSwitch: env.allow_switching_backend_instance,
|
||||||
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
|
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
|
||||||
apiVersion: window['env']['apiVersion'] || '/v1',
|
apiVersion: window['env']['apiVersion'] || '/v1',
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ export const environment = {
|
|||||||
fineractPlatformTenantIds: window['env']['fineractPlatformTenantIds'] || 'default',
|
fineractPlatformTenantIds: window['env']['fineractPlatformTenantIds'] || 'default',
|
||||||
// For connecting to others servers running elsewhere update the base API URL
|
// For connecting to others servers running elsewhere update the base API URL
|
||||||
baseApiUrls: window['env']['fineractApiUrls'] ||
|
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,http://localhost:8443',
|
'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,' + window.location.protocol + '://' + window.location.hostname + ':' + window.location.port,
|
||||||
// For connecting to server running elsewhere set the base API URL
|
// For connecting to server running elsewhere set the base API URL
|
||||||
baseApiUrl: window['env']['baseApiUrl'] || 'https://demo.fineract.dev',
|
baseApiUrl: window['env']['baseApiUrl'] || window.location.protocol + '://' + window.location.hostname + ':' + window.location.port,
|
||||||
allowServerSwitch: env.allow_switching_backend_instance,
|
allowServerSwitch: env.allow_switching_backend_instance,
|
||||||
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
|
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
|
||||||
apiVersion: window['env']['apiVersion'] || '/v1',
|
apiVersion: window['env']['apiVersion'] || '/v1',
|
||||||
|
|||||||
Reference in New Issue
Block a user