shlink/config/autoload/swoole.global.php

26 lines
613 B
PHP
Raw Normal View History

<?php
2019-10-05 10:26:10 -05:00
declare(strict_types=1);
use function Shlinkio\Shlink\Common\env;
return [
2020-01-01 14:11:53 -06:00
'mezzio-swoole' => [
2020-05-01 11:24:48 -05:00
// Setting this to true can have unexpected behaviors when running several concurrent slow DB queries
'enable_coroutine' => false,
'swoole-http-server' => [
'host' => '0.0.0.0',
'port' => (int) env('PORT', 8080),
'process-name' => 'shlink',
'options' => [
'worker_num' => (int) env('WEB_WORKER_NUM', 16),
'task_worker_num' => (int) env('TASK_WORKER_NUM', 16),
],
],
],
];