| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 | 
							- <?php
 
- /**
 
-  * @see https://github.com/hhxsv5/laravel-s/blob/master/Settings-CN.md  Chinese
 
-  * @see https://github.com/hhxsv5/laravel-s/blob/master/Settings.md  English
 
-  */
 
- return [
 
-     'listen_ip'                => env('LARAVELS_LISTEN_IP', '127.0.0.1'),
 
-     'listen_port'              => env('LARAVELS_LISTEN_PORT', 5200),
 
-     'socket_type'              => defined('SWOOLE_SOCK_TCP') ? SWOOLE_SOCK_TCP : 1,
 
-     'enable_coroutine_runtime' => false,
 
-     'server'                   => env('LARAVELS_SERVER', 'LaravelS'),
 
-     'handle_static'            => env('LARAVELS_HANDLE_STATIC', false),
 
-     'laravel_base_path'        => env('LARAVEL_BASE_PATH', base_path()),
 
-     'inotify_reload'           => [
 
-         'enable'        => env('LARAVELS_INOTIFY_RELOAD', false),
 
-         'watch_path'    => base_path(),
 
-         'file_types'    => ['.php'],
 
-         'excluded_dirs' => [],
 
-         'log'           => true,
 
-     ],
 
-     'event_handlers'           => [],
 
-     'websocket'                => [
 
-         'enable' => false,
 
-         //'handler' => XxxWebSocketHandler::class,
 
-     ],
 
-     'sockets'                  => [],
 
-     'processes'                => [
 
-         //[
 
-         //    'class'    => \App\Processes\TestProcess::class,
 
-         //    'redirect' => false, // Whether redirect stdin/stdout, true or false
 
-         //    'pipe'     => 0 // The type of pipeline, 0: no pipeline 1: SOCK_STREAM 2: SOCK_DGRAM
 
-         //],
 
-     ],
 
-     'timer'                    => [
 
-         'enable'        => false,
 
-         'jobs'          => [
 
-             // Enable LaravelScheduleJob to run `php artisan schedule:run` every 1 minute, replace Linux Crontab
 
-             //\Hhxsv5\LaravelS\Illuminate\LaravelScheduleJob::class,
 
-             // Two ways to configure parameters:
 
-             // [\App\Jobs\XxxCronJob::class, [1000, true]], // Pass in parameters when registering
 
-             // \App\Jobs\XxxCronJob::class, // Override the corresponding method to return the configuration
 
-         ],
 
-         'max_wait_time' => 5,
 
-     ],
 
-     'events'                   => [],
 
-     'swoole_tables'            => [],
 
-     'register_providers'       => [
 
-         App\Providers\ViewServiceProvider::class
 
-     ],
 
-     'cleaners'                 => [
 
-         Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class, // If you use the session or authentication in your project, please uncomment this line
 
-         Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,    // If you use the authentication or passport in your project, please uncomment this line
 
-         //Hhxsv5\LaravelS\Illuminate\Cleaners\JWTCleaner::class,     // If you use the package "tymon/jwt-auth" in your project, please uncomment this line
 
-         // ...
 
-     ],
 
-     'destroy_controllers'      => [
 
-         'enable'        => false,
 
-         'excluded_list' => [
 
-             //\App\Http\Controllers\TestController::class,
 
-         ],
 
-     ],
 
-     'swoole'                   => [
 
-         'daemonize'          => env('LARAVELS_DAEMONIZE', false),
 
-         'dispatch_mode'      => 2,
 
-         'reactor_num'        => function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 4,
 
-         'worker_num'         => function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 8,
 
-         //'task_worker_num'    => function_exists('swoole_cpu_num') ? swoole_cpu_num() * 2 : 8,
 
-         'task_ipc_mode'      => 1,
 
-         'task_max_request'   => 8000,
 
-         'task_tmpdir'        => @is_writable('/dev/shm/') ? '/dev/shm' : '/tmp',
 
-         'max_request'        => 8000,
 
-         'open_tcp_nodelay'   => true,
 
-         'pid_file'           => storage_path('laravels.pid'),
 
-         'log_file'           => storage_path(sprintf('logs/swoole-%s.log', date('Y-m'))),
 
-         'log_level'          => 4,
 
-         'document_root'      => base_path('public'),
 
-         'buffer_output_size' => 2 * 1024 * 1024,
 
-         'socket_buffer_size' => 128 * 1024 * 1024,
 
-         'package_max_length' => 4 * 1024 * 1024,
 
-         'reload_async'       => true,
 
-         'max_wait_time'      => 60,
 
-         'enable_reuse_port'  => true,
 
-         'enable_coroutine'   => false,
 
-         'http_compression'   => false,
 
-         // Slow log
 
-         // 'request_slowlog_timeout' => 2,
 
-         // 'request_slowlog_file'    => storage_path(sprintf('logs/slow-%s.log', date('Y-m'))),
 
-         // 'trace_event_worker'      => true,
 
-         /**
 
-          * More settings of Swoole
 
-          * @see https://wiki.swoole.com/wiki/page/274.html  Chinese
 
-          * @see https://www.swoole.co.uk/docs/modules/swoole-server/configuration  English
 
-          */
 
-     ],
 
- ];
 
 
  |