Make keycloak realm configurable
MODIFY
docker/start-nginx-with-devportal.sh
docker/start-nginx-with-devportal.sh
for mainFileName in /usr/share/nginx/html/main*.js
do
- envsubst "\$API_MGMT_UI_REST_URL \$KEYCLOAK_AUTH_URL" < "$mainFileName" > main.tmp
+ envsubst "\$KEYCLOAK_REALM \$API_MGMT_UI_REST_URL \$KEYCLOAK_AUTH_URL" < "$mainFileName" > main.tmp
mv main.tmp "${mainFileName}"
done
nginx -g 'daemon off;'

MODIFY
src/environments/environment.prod.ts
src/environments/environment.prod.ts
export const environment = {
production: true,
- apiMgmtRealm: 'Apiman',
+ apiMgmtRealm: '${KEYCLOAK_REALM}',
apiMgmtUiRestUrl: '${API_MGMT_UI_REST_URL}',
keycloakAuthUrl: '${KEYCLOAK_AUTH_URL}'
};

MODIFY
src/environments/environment.ts
src/environments/environment.ts
export const environment = {
production: false,
- apiMgmtRealm: 'Apiman',
+ apiMgmtRealm: '[keycloakRealm]',
apiMgmtUiRestUrl: 'https://[apimanUiRestEndpoint]:[port]/apiman',
keycloakAuthUrl: 'https://[keycloakEndpoint]:[port]/auth'
};

GW-334: Make keycloak realm configurable