This repository was archived by the owner on May 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,11 +115,9 @@ def dirname(path, num=1):
115115}
116116
117117ELASTICSEARCH = {
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments