servers.php 520 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Simps.
  5. *
  6. * @link https://simps.io
  7. * @document https://doc.simps.io
  8. * @license https://github.com/simple-swoole/simps/blob/master/LICENSE
  9. */
  10. return [
  11. 'mode' => SWOOLE_BASE,
  12. 'http' => [
  13. 'ip' => '0.0.0.0',
  14. 'port' => 8080,
  15. 'sock_type' => SWOOLE_SOCK_TCP,
  16. 'callbacks' => [
  17. ],
  18. 'settings' => [
  19. 'worker_num' => swoole_cpu_num(),
  20. 'only_simple_http' => true,
  21. ],
  22. ],
  23. ];