Skip to content

Commit

Permalink
Merge pull request #2786 from uselagoon/remove-ELASTICSEARCH_HOST
Browse files Browse the repository at this point in the history
 remove ELASTICSEARCH_HOST, use ELASTICSEARCH_URL
  • Loading branch information
Schnitzel committed Aug 19, 2021
2 parents 32cbcba + 4cd9266 commit 3ca5153
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion services/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ RUN yarn check --verify-tree
ENV NODE_ENV=production \
LOGSDB_ADMIN_PASSWORD=admin \
KEYCLOAK_ADMIN_PASSWORD=admin \
ELASTICSEARCH_HOST=logs-db-service:9200 \
ELASTICSEARCH_URL=http://logs-db-service:9200 \
KEYCLOAK_API_CLIENT_SECRET=39d5282d-3684-4026-b4ed-04bbc034b61a \
HARBOR_ADMIN_PASSWORD=Harbor12345 \
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/clients/esClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client } from 'elasticsearch';
import { getConfigFromEnv } from '../util/config';

export const config = {
host: getConfigFromEnv('ELASTICSEARCH_HOST', 'logs-db-service:9200'),
host: getConfigFromEnv('ELASTICSEARCH_URL', 'http://logs-db-service:9200'),
user: 'admin',
pass: getConfigFromEnv('LOGSDB_ADMIN_PASSWORD', '<password not set>')
};
Expand Down

0 comments on commit 3ca5153

Please sign in to comment.