config.inc.php 1.8 KB

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