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
+6
View File
@@ -65,3 +65,9 @@ GEOIP2_DATABASE=
EXAM_PROGRESS_UPDATE_PROBABILITY=20 EXAM_PROGRESS_UPDATE_PROBABILITY=20
TRACKER_API_LOCAL_HOST= TRACKER_API_LOCAL_HOST=
ELASTICSEARCH_HOST=
ELASTICSEARCH_PORT=
ELASTICSEARCH_SCHEME=
ELASTICSEARCH_USER=
ELASTICSEARCH_PASS=
+6 -3
View File
@@ -9,9 +9,12 @@ return [
* https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html * https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html
*/ */
'connection' => [ 'connection' => [
'host' => 'localhost', 'host' => env('ELASTICSEARCH_HOST','localhost'),
'port' => '9200', 'port' => env('ELASTICSEARCH_PORT','9200'),
'scheme' => 'http', 'scheme' => env('ELASTICSEARCH_SCHEME','https'),
'user' => env('ELASTICSEARCH_USER','elastic'),
'pass' => env('ELASTICSEARCH_PASS',''),
], ],
/** /**