WEB-453: Remove fixed actuator endpoint (#2844)

This commit is contained in:
EmanuelCR03
2025-12-08 15:55:38 -06:00
committed by GitHub
parent bdf0e71423
commit cfd188c57c
6 changed files with 11 additions and 1 deletions
+1
View File
@@ -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_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_TENANTS_IDENTIFIER | Tenant identifier list (must align with Fineract `tenants` table) | - |
+6 -1
View File
@@ -5,13 +5,18 @@ import { HttpClient } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Custom Services */
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class VersionService {
private http = inject(HttpClient);
private apiActuator = environment.apiActuator;
getBackendInfo(): Observable<any> {
return this.http.get('/fineract-provider/actuator/info');
return this.http.get(this.apiActuator + '/actuator/info');
}
}
+1
View File
@@ -7,6 +7,7 @@
window["env"]["apiProvider"] = '';
window["env"]["apiVersion"] = '';
window["env"]["apiActuator"] = '';
window["env"]["fineractPlatformTenantId"] = '';
window["env"]["fineractPlatformTenantIds"] = '';
+1
View File
@@ -7,6 +7,7 @@
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';
+1
View File
@@ -23,6 +23,7 @@ export const environment = {
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
apiProvider: loadedEnv['apiProvider'] || '/fineract-provider/api',
apiVersion: loadedEnv['apiVersion'] || '/v1',
apiActuator: loadedEnv.apiActuator || '/fineract-provider',
serverUrl: '',
oauth: {
enabled: loadedEnv['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
+1
View File
@@ -27,6 +27,7 @@ export const environment = {
allowServerSwitch: loadedEnv.allowServerSwitch || 'true',
apiProvider: loadedEnv.apiProvider || '/fineract-provider/api',
apiVersion: loadedEnv.apiVersion || '/v1',
apiActuator: loadedEnv.apiActuator || '/fineract-provider',
serverUrl: '',
/** Feature flag for Remember Me functionality */
enableRememberMe: false,