@@ -71,16 +71,12 @@ role-assignment-service:
7171 }
7272
7373reporting-hub-bop-api-svc:
74- containerSecurityContext:
75- enabled: false
7674 enabled: true
7775 ingress:
7876 enabled: false
7977
8078
8179reporting-legacy-api:
82- containerSecurityContext:
83- enabled: false
8480 enabled: true
8581 ingress:
8682 enabled: false
@@ -157,6 +153,7 @@ reporting-hub-bop-shell:
157153 enabled: false
158154
159155 config:
156+ # images before v2.3.2 use env variables
160157 env:
161158 AUTH_MOCK_API: false
162159 REMOTE_API_BASE_URL: ''
@@ -172,25 +169,74 @@ reporting-hub-bop-shell:
172169 REMOTE_2_URL: https://${ portal_fqdn} /uis/transfers
173170 REMOTE_3_URL: https://${ portal_fqdn} /uis/settlements
174171 REMOTE_4_URL: https://${ portal_fqdn} /uis/positions
172+ configFiles:
173+ # images after v2.3.2 use config.json and remotes.json
174+ config.json:
175+ AUTH_API_BASE_URL: ''
176+ AUTH_MOCK_API: 'false'
177+ REMOTE_API_BASE_URL: ''
178+ REMOTE_MOCK_API: 'false'
179+ AUTH_ENABLED: 'true'
180+ LOGIN_URL: https://${ auth_fqdn} /kratos/self-service/login/browser
181+ LOGIN_PROVIDER: keycloak
182+ LOGOUT_URL: /kratos/self-service/logout/browser?return_to=https%3A%2F%2F${ keycloak_fqdn} %2Frealms%2F${ keycloak_realm_name} %2Fprotocol%2Fopenid-connect%2Flogout
183+ AUTH_TOKEN_URL: /kratos/sessions/whoami
184+ remotes.json:
185+ roles:
186+ path: /iam
187+ label: Roles
188+ menuComponent: Menu
189+ appComponent: App
190+ baseUrl: https://${ portal_fqdn} /uis/iam
191+ url: https://${ portal_fqdn} /uis/iam/app.js
192+ appName: reporting_hub_bop_role_ui
193+ transfers:
194+ path: /transfers
195+ label: Transfers
196+ menuComponent: Menu
197+ appComponent: App
198+ baseUrl: https://${ portal_fqdn} /uis/transfers
199+ url: https://${ portal_fqdn} /uis/transfers/app.js
200+ appName: reporting_hub_bop_trx_ui
201+ settlements:
202+ path: /settlements
203+ label: Settlements
204+ menuComponent: Menu
205+ appComponent: App
206+ baseUrl: https://${ portal_fqdn} /uis/settlements
207+ url: https://${ portal_fqdn} /uis/settlements/app.js
208+ appName: reporting_hub_bop_settlements_ui
209+ positions:
210+ path: /positions
211+ label: Financial Positions
212+ menuComponent: Menu
213+ appComponent: App
214+ baseUrl: https://${ portal_fqdn} /uis/positions
215+ url: https://${ portal_fqdn} /uis/positions/app.js
216+ appName: reporting_hub_bop_positions_ui
175217
176218### Micro-frontends
177219reporting-hub-bop-role-ui:
178220 enabled: true
179221 ingress:
180222 enabled: false
181- config:
182- env:
183- REACT_APP_API_BASE_URL: https://${ portal_fqdn} /api/iam
184- REACT_APP_MOCK_API: false
223+ configFiles:
224+ runtime-env.js: |
225+ window.roleEnv = {
226+ REACT_APP_API_BASE_URL: ' https://${portal_fqdn}/api/iam' ,
227+ REACT_APP_MOCK_API: ' false'
228+ } ;
185229
186230reporting-hub-bop-trx-ui:
187231 enabled: true
188232 ingress:
189233 enabled: false
190- config:
191- env:
192- REACT_APP_API_BASE_URL: https://${ portal_fqdn} /api/transfers
193- REACT_APP_MOCK_API: false
234+ configFiles:
235+ runtime-env.js: |
236+ window.transferEnv = {
237+ REACT_APP_API_BASE_URL: ' https://${portal_fqdn}/api/transfers' ,
238+ REACT_APP_MOCK_API: ' false'
239+ } ;
194240
195241reporting-hub-bop-settlements-ui:
196242 ## Overriding the image version for bugfix related to https://modusbox.atlassian.net/browse/MBP-639
@@ -199,20 +245,24 @@ reporting-hub-bop-settlements-ui:
199245 repository: mojaloop/reporting-hub-bop-settlements-ui
200246 tag: v0.0.19-snapshot.2
201247 enabled: true
202- config:
203- env:
204- CENTRAL_LEDGER_ENDPOINT: https://${ portal_fqdn} /api/central-admin
205- CENTRAL_SETTLEMENTS_ENDPOINT: https://${ portal_fqdn} /api/central-settlements
206- REPORTING_API_ENDPOINT: https://${ portal_fqdn} /api/transfers
207- REPORTING_TEMPLATE_API_ENDPOINT: https://${ portal_fqdn} /api/reports/report-bilateral-settlement
248+ configFiles:
249+ runtime-env.js: |
250+ window.settlementEnv = {
251+ CENTRAL_LEDGER_ENDPOINT: ' https://${portal_fqdn}/api/central-admin' ,
252+ CENTRAL_SETTLEMENTS_ENDPOINT: ' https://${portal_fqdn}/api/central-settlements' ,
253+ REPORTING_API_ENDPOINT: ' https://${portal_fqdn}/api/transfers' ,
254+ REPORTING_TEMPLATE_API_ENDPOINT: ' https://${portal_fqdn}/api/reports/report-bilateral-settlement'
255+ } ;
208256 ingress:
209257 enabled: false
210258
211259
212260reporting-hub-bop-positions-ui:
213261 enabled: true
214- config:
215- env:
216- CENTRAL_LEDGER_ENDPOINT: https://${ portal_fqdn} /api/central-admin
262+ configFiles:
263+ runtime-env.js: |
264+ window.positionsEnv = {
265+ CENTRAL_LEDGER_ENDPOINT: ' https://${portal_fqdn}/api/central-admin'
266+ } ;
217267 ingress:
218268 enabled: false
0 commit comments