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

@ -20,4 +20,4 @@ RUN npm install -g @angular/cli@12.2.17
COPY . /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"
}
]
},
"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": ""
@ -85,6 +113,9 @@
"configurations": {
"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