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