Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 2301296

Browse files
committed
Update ElasticSearch client configuration
1 parent bbad076 commit 2301296

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/mist/api/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,9 @@ def dirname(path, num=1):
115115
}
116116

117117
ELASTICSEARCH = {
118-
'elastic_host': 'elasticsearch',
119-
'elastic_port': '9200',
118+
'elastic_host': 'http://localhost:9200',
120119
'elastic_username': '',
121120
'elastic_password': '',
122-
'elastic_use_ssl': False,
123121
'elastic_verify_certs': False
124122
}
125123

src/mist/api/helpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,17 +1232,13 @@ def es_client(asynchronous=False):
12321232
if not asynchronous:
12331233
return Elasticsearch(
12341234
config.ELASTICSEARCH['elastic_host'],
1235-
port=config.ELASTICSEARCH['elastic_port'],
12361235
http_auth=(config.ELASTICSEARCH['elastic_username'],
12371236
config.ELASTICSEARCH['elastic_password']),
1238-
use_ssl=config.ELASTICSEARCH['elastic_use_ssl'],
12391237
verify_certs=config.ELASTICSEARCH['elastic_verify_certs'],
12401238
)
12411239
else:
1242-
method = 'https' if config.ELASTICSEARCH['elastic_use_ssl'] else 'http'
12431240
return AsyncElasticsearch(
12441241
config.ELASTICSEARCH['elastic_host'],
1245-
port=config.ELASTICSEARCH['elastic_port'], method=method,
12461242
)
12471243

12481244

0 commit comments

Comments
 (0)