fix: fix keycloak connection

This commit is contained in:
nsm 2022-05-30 18:16:50 +02:00 committed by Norman Schmidt
parent a2abde3e8b
commit 7c1784584e
4 changed files with 44 additions and 2 deletions

View File

@ -8,7 +8,7 @@ WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH ENV PATH /app/node_modules/.bin:$PATH
# increase memory limit to avoid "heap out of memory"-error # increase memory limit to avoid "heap out of memory"-error
#TODO investigate on root cause for "heap out of memory"-error # TODO investigate on root cause for "heap out of memory"-error
ENV NODE_OPTIONS="--max_old_space_size=4096" ENV NODE_OPTIONS="--max_old_space_size=4096"
# install and cache app dependencies # install and cache app dependencies
@ -20,4 +20,4 @@ RUN npm install -g @angular/cli@12.2.17
COPY . /app COPY . /app
# start app # start app
CMD ng serve --host 0.0.0.0 CMD ng serve -c compose --host 0.0.0.0

View File

@ -73,6 +73,34 @@
"maximumWarning": "6kb" "maximumWarning": "6kb"
} }
] ]
},
"compose": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.compose.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
} }
}, },
"defaultConfiguration": "" "defaultConfiguration": ""
@ -85,6 +113,9 @@
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "security-c4po-angular:build:production" "browserTarget": "security-c4po-angular:build:production"
},
"compose": {
"browserTarget": "security-c4po-angular:build:compose"
} }
} }
}, },

View File

@ -0,0 +1,11 @@
export const environment = {
production: false,
// keycloak
keycloakURL: 'http://localhost:8888/auth',
keycloakrealm: 'c4po_realm_local',
keycloakclientId: 'c4po_local',
// backend service
apiEndpoint: 'http://localhost:8443',
};

0
security-c4po-api/wait-for-keycloak.sh Normal file → Executable file
View File