config.inc.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. use KIF\Core\Request;
  3. $app_path = '/web/onepage/tm'; //eventpager 目录路径
  4. $cdn_host = 'res.haohuoban.com'; //cdn域名配置
  5. return array(
  6. 'Namespace' => 'Cas',
  7. 'App_Id' => 'http://www.haohuoban.com/', //平台域名。!!!不同的平台需要有不同的域名
  8. 'App_Path' => $app_path,
  9. 'Lib_Path' => $app_path . DS . 'lib',
  10. 'route_file' => $app_path . DS . 'config/route.inc.php',
  11. 'memcached' => array(
  12. 'default' => array(
  13. array('localhost', 11211, 1), //memcached 配置
  14. ),
  15. ),
  16. 'db' => array( //主库配置
  17. 'default' => 'mysqli://root:password@localhost:3306/onepage_v1?charset=utf8', //平台库
  18. 'backend' => 'mysqli://root:password@localhost:3306/onepage?charset=utf8', //公共的后台用户库
  19. ),
  20. 'dbslaves' => array( //从库配置 (可以不填写)
  21. array(
  22. 'master' => 'localhost:3306',
  23. 'mixed' => array(
  24. array(
  25. 'host' => 'localhost',
  26. 'user' => 'root',
  27. 'pass' => 'password',
  28. ),
  29. ),
  30. ),
  31. ),
  32. 'smarty' => array(
  33. 'template_dir' => $app_path . DS . 'template_dir',
  34. 'compile_dir' => $app_path . DS . 'compile_dir',
  35. 'tpl_type' => 'html',
  36. ),
  37. 'upload' => array( //上传静态文件目录
  38. 'path' => '/web/onepage/kissy/public/upload', //路径
  39. 'url' => "http://{$cdn_host}/public/upload", //链接前缀
  40. ),
  41. 'Log_Path' => $app_path .DS.'log',
  42. 'web_cfg' => array(
  43. 'domain' => Request::schemeDomain(),
  44. 'url' => Request::url(),
  45. 'cdn' => "http://{$cdn_host}",
  46. ),
  47. // 微信开发者ID
  48. 'wechat_cfg' => array(
  49. 'appId' => 'wx1bd1c3bfc6b0515e',
  50. 'appSecret' => '21f8ebe7b419a4920eb9b72532798523',
  51. ),
  52. // passport签名key
  53. 'passport_sign_key' => 'rD5carfCGbHAhF',
  54. 'passport_url' => 'http://passport.haohuoban.com/auth.info?' ,
  55. );