config.inc.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. use KIF\Core\Request;
  3. $app_path = '/www/onepage/tm'; //eventpager 目录路径
  4. $cdn_host = 'op_cdn.5dev.cn'; //cdn域名配置
  5. $host = 'op_dever.5dev.cn';//平台域名
  6. $name = 'Dever活动平台';
  7. return array(
  8. 'Namespace' => 'Cas',
  9. 'App_Id' => 'http://'.$host.'/', //平台域名。!!!不同的平台需要有不同的域名
  10. 'App_Path' => $app_path,
  11. 'Lib_Path' => $app_path . DS . 'lib',
  12. 'route_file' => $app_path . DS . 'config/route.inc.php',
  13. 'memcached' => array(
  14. 'default' => array(
  15. array('onepage-memcached', 11211, 1), //memcached 配置
  16. ),
  17. ),
  18. 'db' => array( //主库配置
  19. 'default' => 'mysqli://root:123456@web-mysql:3306/onepage_v1_dever?charset=utf8', //平台库
  20. 'backend' => 'mysqli://root:123456@web-mysql:3306/onepage_v1?charset=utf8', //公共的后台用户库
  21. ),
  22. 'dbslaves' => array( //从库配置 (可以不填写)
  23. /*
  24. array(
  25. 'master' => '192.168.12.4:3306',
  26. 'mixed' => array(
  27. array(
  28. 'host' => '192.168.12.4',
  29. 'user' => 'root',
  30. 'pass' => 'Pwd0fMy5ql_55',
  31. ),
  32. ),
  33. ),
  34. */
  35. ),
  36. 'smarty' => array(
  37. 'template_dir' => $app_path . DS . 'template_dir',
  38. 'compile_dir' => $app_path . DS . 'compile_dir',
  39. 'tpl_type' => 'html',
  40. ),
  41. 'upload' => array( //上传静态文件目录
  42. 'path' => '/www/onepage/kissy/public/upload', //路径
  43. 'url' => "http://{$cdn_host}/public/upload", //链接前缀
  44. ),
  45. 'Log_Path' => $app_path .DS.'log',
  46. 'web_cfg' => array(
  47. 'domain' => Request::schemeDomain(),
  48. 'url' => Request::url(),
  49. 'cdn' => "http://{$cdn_host}",
  50. 'name' => $name,
  51. ),
  52. // 微信开发者ID
  53. 'wechat_cfg' => array(
  54. 'appId' => 'wx1bd1c3bfc6b0515e',
  55. 'appSecret' => '21f8ebe7b419a4920eb9b72532798523',
  56. ),
  57. // passport签名key 已无用
  58. 'passport_sign_key' => 'rD5carfCGbHAhF',
  59. # 不接入第三方
  60. 'passport_url' => 'http://'.$host.'/?c=Login&a=Get' ,
  61. #接入第三方
  62. 'passport_third_url' => 'http://'.$host.'/?c=Passport&a=Get' ,
  63. 'passport' => array
  64. (
  65. 'url' => 'http://203.187.186.136:40000/saywashnew/WashCallApi/api/user/thirdpartyAuthorize.api',
  66. 'url' => 'https://www.saywash.com/saywash/WashCallApi/api/user/thirdpartyAuthorize.api',
  67. 'param' => array
  68. (
  69. 'authorizedCode' => 'fulishe',
  70. 'tokenId' => '{passport_uid}',
  71. ),
  72. ),
  73. );