server.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<[email protected]>
  10. * @copyright walkor<[email protected]>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. return [
  15. 'listen' => 'http://0.0.0.0:8080',
  16. 'transport' => 'tcp',
  17. 'context' => [],
  18. 'name' => 'webman',
  19. 'count' => cpu_count() * ( getenv('TEST_TYPE') === 'default' ? 1 : 4 ),
  20. 'user' => '',
  21. 'group' => '',
  22. 'reuse_port' => true,
  23. 'pid_file' => runtime_path() . '/webman.pid',
  24. 'status_file' => runtime_path() . '/webman.status',
  25. 'stdout_file' => runtime_path() . '/logs/stdout.log',
  26. 'log_file' => runtime_path() . '/logs/workerman.log',
  27. 'max_package_size' => 10*1024*1024
  28. ];