1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- return [
- 'listen_ip' => env('LARAVELS_LISTEN_IP', '0.0.0.0'),
- 'listen_port' => env('LARAVELS_LISTEN_PORT', 18213),
- 'socket_type' => defined('SWOOLE_SOCK_TCP') ? SWOOLE_SOCK_TCP : 1,
- 'enable_coroutine_runtime' => false,
- 'server' => env('LARAVELS_SERVER', 'order-service'),
- '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,
-
- ],
- 'sockets' => [],
- 'processes' => [],
- 'timer' => [
- 'enable' => false,
- 'jobs' => [
-
-
-
-
-
- ],
- 'pid_file' => storage_path('laravels-timer.pid'),
- 'max_wait_time' => 5,
- ],
- 'events' => [],
- 'swoole_tables' => [],
- 'register_providers' => [],
- 'cleaners' => [
-
-
- Hhxsv5\LaravelS\Illuminate\Cleaners\JWTCleaner::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_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,
-
- ],
- ];
|