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, ],