WEB-453: Remove fixed actuator endpoint (#2844)
This commit is contained in:
@@ -144,6 +144,7 @@ All these environment variables can be set when using Docker or Docker Compose:
|
|||||||
| ------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
| ------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||||
| FINERACT_API_URLS | Fineract server list | https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443 |
|
| FINERACT_API_URLS | Fineract server list | https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443 |
|
||||||
| FINERACT_API_URL | Default Fineract server | https://localhost:8443 |
|
| FINERACT_API_URL | Default Fineract server | https://localhost:8443 |
|
||||||
|
| FINERACT_API_ACTUATOR | Default Fineract Actuator endpoint | /fineract-provider |
|
||||||
| FINERACT_PLATFORM_TENANT_IDENTIFIER | Default tenant identifier (must align with Fineract `tenants` table) | default |
|
| FINERACT_PLATFORM_TENANT_IDENTIFIER | Default tenant identifier (must align with Fineract `tenants` table) | default |
|
||||||
| FINERACT_PLATFORM_TENANTS_IDENTIFIER | Tenant identifier list (must align with Fineract `tenants` table) | - |
|
| FINERACT_PLATFORM_TENANTS_IDENTIFIER | Tenant identifier list (must align with Fineract `tenants` table) | - |
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,18 @@ import { HttpClient } from '@angular/common/http';
|
|||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
|
/** Custom Services */
|
||||||
|
import { environment } from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class VersionService {
|
export class VersionService {
|
||||||
private http = inject(HttpClient);
|
private http = inject(HttpClient);
|
||||||
|
|
||||||
|
private apiActuator = environment.apiActuator;
|
||||||
|
|
||||||
getBackendInfo(): Observable<any> {
|
getBackendInfo(): Observable<any> {
|
||||||
return this.http.get('/fineract-provider/actuator/info');
|
return this.http.get(this.apiActuator + '/actuator/info');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
window["env"]["apiProvider"] = '';
|
window["env"]["apiProvider"] = '';
|
||||||
window["env"]["apiVersion"] = '';
|
window["env"]["apiVersion"] = '';
|
||||||
|
window["env"]["apiActuator"] = '';
|
||||||
|
|
||||||
window["env"]["fineractPlatformTenantId"] = '';
|
window["env"]["fineractPlatformTenantId"] = '';
|
||||||
window["env"]["fineractPlatformTenantIds"] = '';
|
window["env"]["fineractPlatformTenantIds"] = '';
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
window['env']['apiProvider'] = '$FINERACT_API_PROVIDER';
|
window['env']['apiProvider'] = '$FINERACT_API_PROVIDER';
|
||||||
window['env']['apiVersion'] = '$FINERACT_API_VERSION';
|
window['env']['apiVersion'] = '$FINERACT_API_VERSION';
|
||||||
|
window['env']['apiActuator'] = '$FINERACT_API_ACTUATOR';
|
||||||
|
|
||||||
window['env']['fineractPlatformTenantId'] = '$FINERACT_PLATFORM_TENANT_IDENTIFIER';
|
window['env']['fineractPlatformTenantId'] = '$FINERACT_PLATFORM_TENANT_IDENTIFIER';
|
||||||
window['env']['fineractPlatformTenantIds'] = '$FINERACT_PLATFORM_TENANTS_IDENTIFIER';
|
window['env']['fineractPlatformTenantIds'] = '$FINERACT_PLATFORM_TENANTS_IDENTIFIER';
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export const environment = {
|
|||||||
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
|
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
|
||||||
apiProvider: loadedEnv['apiProvider'] || '/fineract-provider/api',
|
apiProvider: loadedEnv['apiProvider'] || '/fineract-provider/api',
|
||||||
apiVersion: loadedEnv['apiVersion'] || '/v1',
|
apiVersion: loadedEnv['apiVersion'] || '/v1',
|
||||||
|
apiActuator: loadedEnv.apiActuator || '/fineract-provider',
|
||||||
serverUrl: '',
|
serverUrl: '',
|
||||||
oauth: {
|
oauth: {
|
||||||
enabled: loadedEnv['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
|
enabled: loadedEnv['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export const environment = {
|
|||||||
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
|
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
|
||||||
apiProvider: loadedEnv.apiProvider || '/fineract-provider/api',
|
apiProvider: loadedEnv.apiProvider || '/fineract-provider/api',
|
||||||
apiVersion: loadedEnv.apiVersion || '/v1',
|
apiVersion: loadedEnv.apiVersion || '/v1',
|
||||||
|
apiActuator: loadedEnv.apiActuator || '/fineract-provider',
|
||||||
serverUrl: '',
|
serverUrl: '',
|
||||||
/** Feature flag for Remember Me functionality */
|
/** Feature flag for Remember Me functionality */
|
||||||
enableRememberMe: false,
|
enableRememberMe: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user