elastic basically finish

This commit is contained in:
xiaomlove
2022-03-26 04:27:04 +08:00
parent eb7451f574
commit 0bc1e2f9d3
17 changed files with 1146 additions and 33 deletions
+16
View File
@@ -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
View File
@@ -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,
],
/**
+14
View File
@@ -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
View File
@@ -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,
],
],