config.huawei_web.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. 'name' => 'weilaibike-demo',
  12. // 分布式 是否允许 Register服务
  13. 'is_register_run' => true,
  14. // 分布式 内网主机ip
  15. 'gateway_lanIp' => '0.0.0.0',
  16. // 分布式 Register服务地址
  17. 'registerAddress' => '127.0.0.1:1238',
  18. 'db' => [
  19. 'host' => '127.0.0.1',
  20. 'port' => 3306,
  21. 'user' => 'weilaibike_dev',
  22. 'password' => 'x6DDAMmSJNiYwDCW',
  23. 'db_name' => 'weilaibike_dev'
  24. ],
  25. 'redis' => [
  26. 'host' => '127.0.0.1',
  27. 'port' => 6379,
  28. 'database' => 0
  29. ],
  30. 'mongodb' => [
  31. 'url' => 'mongodb://127.0.0.1:27017',
  32. 'database' => 'weilaibike'
  33. ],
  34. 'gateway' => [
  35. 'is_run' => true,
  36. 'port' => 8282,
  37. 'count' => 4,
  38. 'pingInterval' => 130,
  39. 'pingNotResponseLimit' => 1,
  40. 'startPort' => 3200,
  41. ],
  42. 'business' => [
  43. 'is_run' => true,
  44. 'count' => 4
  45. ],
  46. 'close_order_api_url' => 'https://api.weilaibike.dev.hanyiyun.com/api/relay/order/auto-close?key=D7sM78f1kOOndRMgX9mkwHYG8SzHFW6AZbPXAwAfZuLgyxbFHji99SZF2tP9PJ0r'
  47. ];