fix: fix keycloak connection
This commit is contained in:
parent
a2abde3e8b
commit
7c1784584e
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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',
|
||||||
|
};
|
Loading…
Reference in New Issue