mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Db monitor for ES needs to point to the correct server.
This commit is contained in:
parent
7a9894e31b
commit
6c5aed53eb
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ def db_check_redis_pubsub():
|
|||
@app.route("/db_check/elasticsearch")
|
||||
def db_check_elasticsearch():
|
||||
try:
|
||||
conn = elasticsearch.Elasticsearch("db-elasticsearch.service.nyc1.consul:9200")
|
||||
conn = elasticsearch.Elasticsearch(f"{settings.SERVER_NAME}.node.nyc1.consul:9200")
|
||||
except:
|
||||
abort(Response("Can't connect to db", 503))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue