Skip to content

Commit

Permalink
fix: bff path configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 30, 2024
1 parent 8d954f2 commit a2cb4d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nginx/locations.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
location @@APP_BASE_HREF {
location @@APP_BASE_HREFbff {
proxy_pass @@BFF_URL;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down
4 changes: 2 additions & 2 deletions proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const bypassFn = function (req, res) {
}

const PROXY_CONFIG = {
'/theme-bff': {
'/bff': {
target: 'http://onecx-theme-bff',
secure: false,
pathRewrite: {
'^.*/theme-bff': ''
'^.*/bff': ''
},
changeOrigin: true,
logLevel: 'debug',
Expand Down
4 changes: 2 additions & 2 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const environment = {
production: true,
BASE_PATH: '/theme-bff',
apiPrefix: 'theme-bff'
BASE_PATH: '/bff',
apiPrefix: 'bff'
}
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const environment = {
KEYCLOAK_CLIENT_ID: 'portal-mf-shell',
TKIT_PORTAL_ID: 'ADMIN',
skipRemoteConfigLoad: true,
apiPrefix: 'theme-bff'
apiPrefix: 'bff'
}

0 comments on commit a2cb4d7

Please sign in to comment.