default.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. # 数据库配置
  3. $config['database'] = array
  4. (
  5. # 默认数据库配置
  6. 'default' => array
  7. (
  8. 'type' => 'pdo',
  9. 'host' => array
  10. (
  11. 'read' => 'web-mysql:3306',
  12. 'update' => 'web-mysql:3306',
  13. ),
  14. 'database' => 'wonderful',
  15. 'username' => 'root',
  16. 'password' => '123456',
  17. 'charset' => 'utf8',
  18. ),
  19. );
  20. $config['debug'] = array
  21. (
  22. 'log' => array('type' => 'file'),
  23. );
  24. $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '192.168.33.10';
  25. $host = 'http://'.$local . '/';
  26. $upload = $host . 'upload/';
  27. $uploadcdn = $host . 'upload/data/';
  28. $config['host'] = array
  29. (
  30. 'upload'=> $upload . 'upload/?save',
  31. 'uploadRes' => $uploadcdn . 'upload/',
  32. 'project' => array
  33. (
  34. /*
  35. 'upload' => array
  36. (
  37. 'path' => $host. 'upload/upload/?',
  38. ),
  39. */
  40. 'pay' => array
  41. (
  42. 'path' => $host. 'pay/pay/?',
  43. ),
  44. 'wechat_applet' => array
  45. (
  46. 'path' => $host. 'wechat/wechat_applet/?',
  47. ),
  48. ),
  49. );
  50. return $config;