mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
add elasticsearch env
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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',''),
|
||||
|
||||
],
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user