Skip to content
Snippets Groups Projects

Issue #69: ElasticSearch client and env commented

Merged Richard Fernando Heise Ferreira requested to merge issue-69/elastic-client into develop
3 files
+ 25
9
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 6
1
@@ -6,6 +6,11 @@ import { Container } from 'typedi'
export const es = new Client({
node: env.ELASTICSEARCH_URL,
Connection: HttpConnection,
tls: {
// This ignores TLS. This can only be used when ES is protected behind
// a firewall, like in c3sl. Otherwise this has to use certs.
rejectUnauthorized: false
}
})
// Register the Elasticsearch client in the DI container
@@ -26,4 +31,4 @@ checkElasticsearchConnection()
export type es = typeof es
export default es
\ No newline at end of file
export default es
Loading