Skip to content

Commit

Permalink
configure api for KEYCLOAK_ADMIN_USER
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored and rocketeerbkw committed May 19, 2022
1 parent 7f35506 commit dbd2338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions services/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN yarn check --verify-tree
# Making sure we run in production
ENV NODE_ENV=production \
LOGSDB_ADMIN_PASSWORD=admin \
KEYCLOAK_ADMIN_USER=admin \
KEYCLOAK_ADMIN_PASSWORD=admin \
ELASTICSEARCH_URL=http://logs-db-service:9200 \
KEYCLOAK_API_CLIENT_SECRET=39d5282d-3684-4026-b4ed-04bbc034b61a \
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/clients/keycloakClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getConfigFromEnv, getLagoonRouteFromEnv } from '../util/config';

export const config = {
origin: getConfigFromEnv('KEYCLOAK_URL', 'http://keycloak:8080'),
user: 'admin',
user: getConfigFromEnv('KEYCLOAK_ADMIN_USER', 'admin'),
pass: getConfigFromEnv('KEYCLOAK_ADMIN_PASSWORD', '<password not set>'),
realm: 'lagoon',
apiClientSecret: getConfigFromEnv(
Expand Down

0 comments on commit dbd2338

Please sign in to comment.