env.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /**
  3. * 环境参数例子
  4. * 格式说明:
  5. * 配置均为kv形式
  6. * key的格式: 文件名.key1[.keyN]
  7. * 例子:
  8. * 需要覆盖main配置文件db的connectionString参数
  9. * array(
  10. * //数据库链接字符串
  11. * 'main.components.db.connectionString' => 'xxxxxx'
  12. * )
  13. */
  14. return array(
  15. //rds配置
  16. 'main.components.db.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  17. 'main.components.db.username' => 'zhipuzi',
  18. 'main.components.db.password' => 'Zhipuzitest00',
  19. //slave
  20. 'main.components.slaveDb.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  21. 'main.components.slaveDb.username' => 'zhipuzi',
  22. 'main.components.slaveDb.password' => 'Zhipuzitest00',
  23. //ADS
  24. 'main.components.ads.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  25. 'main.components.ads.username' => 'zhipuzi',
  26. 'main.components.ads.password' => 'Zhipuzitest00',
  27. //用户中心db
  28. 'main.components.userDb.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  29. 'main.components.userDb.username' => 'zhipuzi',
  30. 'main.components.userDb.password' => 'Zhipuzitest00',
  31. //监控配置
  32. 'statis.db.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  33. 'statis.db.username' => 'zhipuzi',
  34. 'statis.db.password' => 'Zhipuzitest00',
  35. //登录页面
  36. 'main.components.user.loginUrl' => 'https://www-test2.zhipuzi.com/login.html',
  37. //乐外卖
  38. //redis配置
  39. //redis服务器地址
  40. // 'redis.host' => '115.29.174.119',
  41. // //redis端口
  42. // 'redis.port' => '6379',
  43. // //redis密码
  44. // 'redis.password' => 'JK23FU72g82gsa98Gs',
  45. //智铺子
  46. //redis配置
  47. //redis服务器地址
  48. 'redis.host' => 'r-bp1405387a9e6614.redis.rds.aliyuncs.com',
  49. //redis端口
  50. 'redis.port' => '6379',
  51. //redis密码
  52. 'redis.password' => 'ZhipuziRedisTest000',
  53. //全局配置
  54. // api地址
  55. 'global.apiBaseUrl' => 'https://api-test.zhipuzi.com',
  56. //admin系统url
  57. "global.adminUrl" => "https://admin-test2.zhipuzi.com",
  58. //静态资源url
  59. 'global.assetsUrl' => 'https://pf-assets-test2.zhipuzi.com',
  60. //wap url
  61. 'global.wapBaseUrl' => 'https://wap-test2.zhipuzi.com',
  62. //www url
  63. 'global.wwwBaseUrl' => 'https://www-test2.zhipuzi.com',
  64. //微信开放平台配置
  65. 'global.wechatOpenPlatform.appid' => 'wxe66e8394b58176b3',
  66. 'global.wechatOpenPlatform.secret' => '9018b791d2be2067e11da984d6a94df1',
  67. //公众号消息校验Token
  68. 'global.wechatOpenPlatform.token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  69. //公众号消息加解密Key
  70. 'global.wechatOpenPlatform.encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  71. //餐饮系统内网h5域名
  72. 'global.business_h5_internal_host.repast' => 'https://cyh5-test2.zhipuzi.com',
  73. //零售系统内外h5域名
  74. 'global.business_h5_internal_host.retail' => 'https://lsh5-test2.zhipuzi.com',
  75. //餐饮系统内网api域名
  76. 'global.business_h5_internal_host.repastapi' => 'https://cyapi-test2.zhipuzi.com',
  77. //零售系统内外api域名
  78. 'global.business_h5_internal_host.retailapi' => 'https://lsapi-test2.zhipuzi.com',
  79. //乐外卖公众号配置
  80. 'global.wechat.appid' => 'wx9213c38c57da2bf6',
  81. 'global.wechat.secret' => '8513b99bfd3c6372f843eae792c82a06',
  82. //阿里云日志服务配置
  83. 'log.aliyunLogHub.endpoint' => '',
  84. //阿里云访问秘钥 AccessKeyId
  85. 'log.aliyunLogHub.accessKeyId' => '',
  86. //阿里云访问秘钥 AccessKeySecret
  87. 'log.aliyunLogHub.accessKey' => '',
  88. //日志库
  89. 'log.aliyunLogHub.logstore' => 'test',
  90. //阿里云access key id
  91. 'opensearch.accessKeyId' => '2HUnzc9XJV92PjvW',
  92. //阿里云access secret
  93. 'opensearch.accessSecret' => '20mMc8wuzlfC0r323b6oJqxlBPEyjW',
  94. //阿里云opensearch api域名
  95. 'opensearch.endPoint' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
  96. //worker php守护进程配置
  97. //php命令路径
  98. 'worker.php' => '/home/zhaoqin/local/php-5.6.8/bin/php',
  99. //进程运行角色
  100. 'worker.uid' => 'zhaoqin',
  101. //日志路由配置
  102. // 'main.components.log.routes' => array(
  103. // //页面输出性能日志, 网页调试可以打开
  104. // array(
  105. // 'class' => 'CProfileLogRoute',
  106. // ),
  107. // ),
  108. //阿里云access key id
  109. 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
  110. //阿里云access secret
  111. 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  112. //阿里云mns api域名
  113. 'mns.endPoint' => 'http://1733013318510961.mns.cn-hangzhou-internal.aliyuncs.com/',
  114. //ADS
  115. 'main.components.ads.connectionString' => 'mysql:host=lewaimai-ae1b4b7b.cn-hangzhou-1.ads.aliyuncs.com:10124;dbname=lewaimai',
  116. 'main.components.ads.username' => '2HUnzc9XJV92PjvW',
  117. 'main.components.ads.password' => '20mMc8wuzlfC0r323b6oJqxlBPEyjW',
  118. //餐饮营销域名
  119. 'global.business_host.cyYxBaseUrl' => 'http://{appid}.yxcy-test2.zhipuzi.com',
  120. //零售营销域名
  121. 'global.business_host.lsYxBaseUrl' => 'http://{appid}.yxls-test2.zhipuzi.com',
  122. 'global.business_host.cyapi' => 'https://cyapi-test2.zhipuzi.com',
  123. 'global.business_host.lsapi' => 'https://lsapi-test2.zhipuzi.com',
  124. //乐刷广告
  125. 'global.leshauadv.adv_click_url' => 'https://t-baseweb.lepass.cn/api/adv/partner/report.do', //乐刷广告点击上报接口
  126. 'global.leshauadv.adv_query_url' => 'https://t-baseweb.lepass.cn/api/adv/partner/list.do', //乐刷广告查询接口
  127. 'global.leshauadv.adv_key' => 'yeahka20190101qrhituiqrbndksfxd2', //乐刷广告请求key值
  128. );