mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
elastic basically finish
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'hosts' => [
|
||||
[
|
||||
'host' => env('ELASTICSEARCH_HOST','localhost'),
|
||||
'port' => env('ELASTICSEARCH_PORT','9200'),
|
||||
'scheme' => env('ELASTICSEARCH_SCHEME','https'),
|
||||
'user' => env('ELASTICSEARCH_USER','elastic'),
|
||||
'pass' => env('ELASTICSEARCH_PASS',''),
|
||||
]
|
||||
],
|
||||
|
||||
'ssl_verification' => env('ELASTICSEARCH_SSL_VERIFICATION', ''),
|
||||
];
|
||||
+2
-1
@@ -22,7 +22,8 @@ return [
|
||||
* of the mapping possibilities can be found in the documentation of Explorer's repository.
|
||||
*/
|
||||
'indexes' => [
|
||||
\App\Models\Torrent::class
|
||||
\App\Models\Torrent::class,
|
||||
\App\Models\User::class,
|
||||
],
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,4 +24,18 @@ return [
|
||||
'database' => nexus_env('REDIS_DB', 0),
|
||||
],
|
||||
|
||||
'elasticsearch' => [
|
||||
'hosts' => [
|
||||
[
|
||||
'host' => nexus_env('ELASTICSEARCH_HOST','localhost'),
|
||||
'port' => nexus_env('ELASTICSEARCH_PORT','9200'),
|
||||
'scheme' => nexus_env('ELASTICSEARCH_SCHEME','https'),
|
||||
'user' => nexus_env('ELASTICSEARCH_USER','elastic'),
|
||||
'pass' => nexus_env('ELASTICSEARCH_PASS',''),
|
||||
]
|
||||
],
|
||||
|
||||
'ssl_verification' => nexus_env('ELASTICSEARCH_SSL_VERIFICATION', ''),
|
||||
]
|
||||
|
||||
];
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('QUEUE_CONNECTION', 'sync'),
|
||||
'default' => env('QUEUE_CONNECTION', 'redis'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -68,7 +68,7 @@ return [
|
||||
'queue' => env('REDIS_QUEUE', 'default'),
|
||||
'retry_after' => 90,
|
||||
'block_for' => null,
|
||||
'after_commit' => false,
|
||||
'after_commit' => true,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user