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;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
use Laravel\Horizon\Horizon;
use Laravel\Horizon\HorizonApplicationServiceProvider;

View File

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