mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +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")
|
@app.route("/db_check/elasticsearch")
|
||||||
def db_check_elasticsearch():
|
def db_check_elasticsearch():
|
||||||
try:
|
try:
|
||||||
conn = elasticsearch.Elasticsearch("db-elasticsearch.service.nyc1.consul:9200")
|
conn = elasticsearch.Elasticsearch(f"{settings.SERVER_NAME}.node.nyc1.consul:9200")
|
||||||
except:
|
except:
|
||||||
abort(Response("Can't connect to db", 503))
|
abort(Response("Can't connect to db", 503))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue