config.inc.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. use KIF\Core\Request;
  3. $app_path = '/www/onepage/tm'; //eventpager 目录路径
  4. $cdn_host = 'op_cdn.5dev.cn'; //cdn域名配置
  5. $name = 'Dever活动平台';
  6. return array(
  7. 'Namespace' => 'Cas',
  8. 'App_Id' => 'http://op_dever.5dev.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('onepage-memcached', 11211, 1), //memcached 配置
  15. ),
  16. ),
  17. 'db' => array( //主库配置
  18. 'default' => 'mysqli://root:123456@web-mysql:3306/onepage_v1_dever?charset=utf8', //平台库
  19. 'backend' => 'mysqli://root:123456@web-mysql:3306/onepage_v1?charset=utf8', //公共的后台用户库
  20. ),
  21. 'dbslaves' => array( //从库配置 (可以不填写)
  22. /*
  23. array(
  24. 'master' => '192.168.12.4:3306',
  25. 'mixed' => array(
  26. array(
  27. 'host' => '192.168.12.4',
  28. 'user' => 'root',
  29. 'pass' => 'Pwd0fMy5ql_55',
  30. ),
  31. ),
  32. ),
  33. */
  34. ),
  35. 'smarty' => array(
  36. 'template_dir' => $app_path . DS . 'template_dir',
  37. 'compile_dir' => $app_path . DS . 'compile_dir',
  38. 'tpl_type' => 'html',
  39. ),
  40. 'upload' => array( //上传静态文件目录
  41. 'path' => '/www/onepage/kissy/public/upload', //路径
  42. 'url' => "http://{$cdn_host}/public/upload", //链接前缀
  43. ),
  44. 'Log_Path' => $app_path .DS.'log',
  45. 'web_cfg' => array(
  46. 'domain' => Request::schemeDomain(),
  47. 'url' => Request::url(),
  48. 'cdn' => "http://{$cdn_host}",
  49. 'name' => $name,
  50. ),
  51. // 微信开发者ID
  52. 'wechat_cfg' => array(
  53. 'appId' => 'wx1bd1c3bfc6b0515e',
  54. 'appSecret' => '21f8ebe7b419a4920eb9b72532798523',
  55. ),
  56. // passport签名key
  57. 'passport_sign_key' => 'rD5carfCGbHAhF',
  58. 'passport_url' => 'http://passport.5dev.cn/auth.info?' ,
  59. );