From fff294d1b71c6ce01e317ca29e95e256d92cb7e3 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Wed, 16 Mar 2022 15:16:36 +0100 Subject: [PATCH] .env for elasticsearch --- .env.example | 2 ++ config/elasticquent.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 98fe35a..86a5dfb 100644 --- a/.env.example +++ b/.env.example @@ -38,3 +38,5 @@ LDAP_BASE_DN="dc=example,dc=org" LDAP_USERNAME="cn=admin,dc=example,dc=org" LDAP_PASSWORD=adminpassword LDAP_USE_SSL=false + +ELASTICSEARCH_HOSTS= diff --git a/config/elasticquent.php b/config/elasticquent.php index fd95f76..009d50a 100644 --- a/config/elasticquent.php +++ b/config/elasticquent.php @@ -14,7 +14,7 @@ return array( */ 'config' => [ - 'hosts' => ['http://127.0.0.1:9200'], + 'hosts' => explode(",", env('ELASTICSEARCH_HOSTS')), 'retries' => 1, ],