config-development.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: leo
  5. * Date: 2018/2/23
  6. * Time: 下午3:53
  7. */
  8. return [
  9. // 奖金结算系统主库
  10. 'db' => [
  11. // 数据库连接
  12. 'dsn' => 'mysql:host=211.168.0.4;dbname=ngds_lg',
  13. // 数据库用户名
  14. 'username' => 'root',
  15. // 数据库密码
  16. 'password' => 'root1234',
  17. // 数据库字符集
  18. 'charset' => 'utf8',
  19. // 数据表前缀
  20. 'tablePrefix' => 'AR_',
  21. ],
  22. // 日志库
  23. 'dbLog' => [
  24. 'dsn' => 'mongodb://211.168.0.5:27017/admin',
  25. 'options' => [
  26. "username" => "root",
  27. "password" => "root"
  28. ],
  29. ],
  30. // 奖金结算专属库(为不占用主库资源,不影响会员正常业务,该库专门用于奖金结算,可单独架设,需与主库做主从同步)
  31. 'dbCalc' => [
  32. 'dsn' => 'mysql:host=211.168.0.4;dbname=ngds_lg',
  33. 'username' => 'root',
  34. 'password' => 'root1234',
  35. 'charset' => 'utf8',
  36. 'tablePrefix' => 'AR_',
  37. ],
  38. // 移动点位时专用的点位备份库(可用来查看各个时期的会员点位情况)
  39. 'dbNetPoint' => [
  40. 'dsn' => 'mysql:host=211.168.0.4;dbname=ngds_lg',
  41. 'username' => 'root',
  42. 'password' => 'root1234',
  43. 'charset' => 'utf8',
  44. 'tablePrefix' => 'AR_',
  45. ],
  46. // 系统从库
  47. 'slavesDb' => [
  48. 'slaveConfig' => [
  49. 'username' => 'root',
  50. 'password' => 'root1234',
  51. 'charset' => 'utf8',
  52. 'tablePrefix' => 'AR_',
  53. 'attributes' => [
  54. PDO::ATTR_TIMEOUT => 10, // 从库超时切换间隔时间
  55. ],
  56. ],
  57. 'slaves' => [
  58. ['dsn' => 'mysql:host=211.168.0.4;dbname=ngds_lg'],
  59. // 其他奖金结算系统的从库从下面继续添加配置
  60. ],
  61. ],
  62. // Token专用 Redis 库
  63. 'tokenRedis' => [
  64. // 服务器
  65. 'hostname' => '211.168.0.6',
  66. //'username' => '',
  67. // 端口
  68. 'port' => 6379,
  69. // 密码
  70. //'password' => '',
  71. // 库索引
  72. 'database' => 0,
  73. ],
  74. // 缓存专用 Redis 库
  75. 'cacheRedis' => [
  76. 'hostname' => '211.168.0.6',
  77. //'username' => '',
  78. 'port' => 6379,
  79. //'password' => '',
  80. 'database' => 0,
  81. ],
  82. // 其他数据 Redis 库
  83. 'otherRedis' => [
  84. 'hostname' => '211.168.0.6',
  85. //'username' => '',
  86. 'port' => 6379,
  87. //'password' => '',
  88. 'database' => 0,
  89. ],
  90. // 远程静态上传服务器地址 @todo 明哥提供
  91. //'remoteUploadHost' => 'http://ar.upload.ming',
  92. 'remoteUploadHost' => 'http://211.168.0.1:3034',
  93. // 远程静态上传服务器地址
  94. // 'idCardVerify' => [
  95. // 'host' => 'http://121.40.238.29:20000',
  96. // 'clientId' => '122371433052508160',
  97. // ],
  98. 'idCardVerify' => [
  99. 'host' => 'https://pay.lingyonggong.cn',
  100. 'clientId' => '482924578939613184',
  101. ],
  102. // swoole异步服务器及端口
  103. 'swooleTimerConfig' => [
  104. 'host' => '211.168.0.3',
  105. 'port' => '9515',
  106. ],
  107. 'swooleClientConfig' => [
  108. 'host' => '211.168.0.3',
  109. 'port' => '9515',
  110. ],
  111. // swoole奖金服务器及端口
  112. 'swooleBonusClientConfig' => [
  113. 'host' => '211.168.0.3',
  114. 'port' => '9515',
  115. ],
  116. ];