update: horizon auth

This commit is contained in:
tokumeikoi 2021-09-01 02:11:19 +09:00
parent 35e11a6816
commit fabb49baea
2 changed files with 14 additions and 6 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Gate;
use Laravel\Horizon\Horizon; use Laravel\Horizon\Horizon;
use Laravel\Horizon\HorizonApplicationServiceProvider; use Laravel\Horizon\HorizonApplicationServiceProvider;

View File

@ -70,7 +70,7 @@ return [
| |
*/ */
'middleware' => ['web'], 'middleware' => ['web', 'admin'],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -168,9 +168,16 @@ return [
'production' => [ 'production' => [
'supervisor-1' => [ 'supervisor-1' => [
'connection' => 'redis', 'connection' => 'redis',
'queue' => ['default'], 'queue' => [
'balance' => 'simple', 'traffic_fetch',
'processes' => 10, 'server_log',
'send_email',
'send_telegram',
'stat_server'
],
'balance' => 'auto',
'minProcesses' => 8,
'maxProcesses' => 16,
'tries' => 1, 'tries' => 1,
'nice' => 0, 'nice' => 0,
], ],
@ -187,8 +194,8 @@ return [
'stat_server' 'stat_server'
], ],
'balance' => 'auto', 'balance' => 'auto',
'minProcesses' => 1, 'minProcesses' => 8,
'maxProcesses' => 10, 'maxProcesses' => 16,
'tries' => 1, 'tries' => 1,
'nice' => 0, 'nice' => 0,
], ],