mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-14 07:39:03 +00:00
config: Add Elasticsearch hosts (#492)
This commit is contained in:
committed by
Arylide
parent
56a670977e
commit
5c8b119611
@@ -185,7 +185,7 @@ def search_elastic(term='', user=None, sort='id', order='desc',
|
||||
if page > 4294967295:
|
||||
flask.abort(404)
|
||||
|
||||
es_client = Elasticsearch()
|
||||
es_client = Elasticsearch(hosts=app.config['ES_HOSTS'])
|
||||
|
||||
es_sort_keys = {
|
||||
'id': 'id',
|
||||
|
||||
Reference in New Issue
Block a user