config.node1.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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',
  12. // 分布式 是否允许 Register服务
  13. 'is_register_run' => true,
  14. // 分布式 内网主机ip
  15. 'gateway_lanIp' => '192.168.0.204',
  16. // 分布式 Register服务地址
  17. 'registerAddress' => '192.168.0.204:1238',
  18. //数据库配置
  19. 'db' => [
  20. 'host' => 'node2',
  21. 'port' => 3306,
  22. 'user' => 'weilaibike',
  23. 'password' => 'LGcaxd5WJjepJccx',
  24. 'db_name' => 'weilaibike'
  25. ],
  26. //redis配置
  27. 'redis' => [
  28. 'host' => 'node3',
  29. 'port' => 6379,
  30. 'database' => 0
  31. ],
  32. //mongodb配置
  33. 'mongodb' => [
  34. 'url' => 'mongodb://node3:27017',
  35. 'database' => 'weilaibike'
  36. ],
  37. 'gateway' => [
  38. 'is_run' => true,
  39. 'port' => 8282,
  40. 'count' => 4,
  41. 'pingInterval' => 300,
  42. 'pingNotResponseLimit' => 1,
  43. 'startPort' => 3200,
  44. ],
  45. 'business' => [
  46. 'is_run' => true,
  47. 'count' => 4
  48. ],
  49. //用户端关闭订单接口
  50. 'close_order_api_url' => 'https://api.weilaibike.com/api/relay/order/auto-close?key=D7sM78f1kOOndRMgX9mkwHYG8SzHFW6AZbPXAwAfZuLgyxbFHji99SZF2tP9PJ0r'
  51. ];