config.test.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Mead
  5. * Date: 2019/10/18
  6. * Time: 9:13 PM
  7. */
  8. const Config = [
  9. // 是否开启调试
  10. 'debug' => true,
  11. // 分布式 是否允许 Register服务
  12. 'is_register_run' => true,
  13. // 分布式 内网主机ip
  14. 'gateway_lanIp' => '0.0.0.0',
  15. // 分布式 Register服务地址
  16. 'registerAddress' => '127.0.0.1:1238',
  17. 'db' => [
  18. 'host' => '127.0.0.1',
  19. 'port' => 3306,
  20. 'user' => 'xiaobanma',
  21. 'password' => 'H3HZs6x25pM5m4CG',
  22. 'db_name' => 'xiaobanma'
  23. ],
  24. 'redis' => [
  25. 'host' => '127.0.0.1',
  26. 'port' => 6379,
  27. 'database' => 0
  28. ],
  29. 'mongodb' => [
  30. 'url' => 'mongodb://127.0.0.1:27017',
  31. 'database' => 'xiaobanma'
  32. ],
  33. 'gateway' => [
  34. 'is_run' => true,
  35. 'port' => 8383,
  36. 'count' => 4,
  37. 'pingInterval' => 130,
  38. 'pingNotResponseLimit' => 1,
  39. ],
  40. 'business' => [
  41. 'is_run' => true,
  42. 'count' => 4
  43. ],
  44. 'close_order_api_url' => 'https://api.weilaibike.com/api/relay/order/auto-close?key=D7sM78f1kOOndRMgX9mkwHYG8SzHFW6AZbPXAwAfZuLgyxbFHji99SZF2tP9PJ0r'
  45. ];