add elasticsearch env

This commit is contained in:
xiaomlove
2022-03-22 19:46:53 +08:00
parent aa68f84750
commit eb7451f574
2 changed files with 12 additions and 3 deletions

View File

@@ -65,3 +65,9 @@ GEOIP2_DATABASE=
EXAM_PROGRESS_UPDATE_PROBABILITY=20
TRACKER_API_LOCAL_HOST=
ELASTICSEARCH_HOST=
ELASTICSEARCH_PORT=
ELASTICSEARCH_SCHEME=
ELASTICSEARCH_USER=
ELASTICSEARCH_PASS=

View File

@@ -9,9 +9,12 @@ return [
* https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html
*/
'connection' => [
'host' => 'localhost',
'port' => '9200',
'scheme' => 'http',
'host' => env('ELASTICSEARCH_HOST','localhost'),
'port' => env('ELASTICSEARCH_PORT','9200'),
'scheme' => env('ELASTICSEARCH_SCHEME','https'),
'user' => env('ELASTICSEARCH_USER','elastic'),
'pass' => env('ELASTICSEARCH_PASS',''),
],
/**