You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.0 KiB

3 years ago
  1. <?php
  2. return array(
  3. //'配置项'=>'配置值'
  4. //使用sqlite数据库
  5. 'DB_TYPE' => 'Sqlite',
  6. 'DB_NAME' => '../Sqlite/showdoc.db.php',
  7. //showdoc不再支持mysql http://www.showdoc.cc/help?page_id=31990
  8. 'DB_HOST' => 'localhost',
  9. 'DB_USER' => 'showdoc',
  10. 'DB_PWD' => 'showdoc123456',
  11. 'DB_PORT' => 3306, // 端口
  12. 'DB_PREFIX' => '', // 数据库表前缀
  13. 'DB_CHARSET'=> 'utf8', // 字符集
  14. 'DB_DEBUG' => TRUE, // 数据库调试模式 开启后可以记录SQL日志
  15. 'URL_HTML_SUFFIX' => '',//url伪静态后缀
  16. 'URL_MODEL' => 3 ,//URL兼容模式
  17. 'URL_ROUTER_ON' => true,
  18. 'URL_ROUTE_RULES'=>array(
  19. ':id\d' => 'Home/Item/show?item_id=:1',
  20. ':domain\s$' => 'Home/Item/show?item_domain=:1',//item的个性域名
  21. 'uid/:id\d' => 'Home/Item/showByUid?uid=:1',
  22. 'page/:id\d' => 'Home/Page/single?page_id=:1',
  23. 'mock-data/:unique_key\s' => 'Api/Mock/infoByKey?unique_key=:1',
  24. ),
  25. 'URL_CASE_INSENSITIVE'=>true,
  26. 'SHOW_ERROR_MSG' => true, // 显示错误信息,这样在部署模式下也能显示错误
  27. 'STATS_CODE' =>'', //可选,统计代码
  28. 'TMPL_CACHE_ON' => false,//禁止模板编译缓存
  29. 'HTML_CACHE_ON' => false,//禁止静态缓存
  30. 'TMPL_EXCEPTION_FILE' => '../Public/exception.tpl' , //错误模版
  31. //上传文件到七牛的配置
  32. 'UPLOAD_SITEIMG_QINIU' => array(
  33. 'maxSize' => 5 * 1024 * 1024,//文件大小
  34. 'rootPath' => './',
  35. 'saveName' => array ('uniqid', ''),
  36. 'driver' => 'Qiniu',
  37. 'driverConfig' => array (
  38. 'secrectKey' => '',
  39. 'accessKey' => '',
  40. 'domain' => '',
  41. 'bucket' => '',
  42. )
  43. ),
  44. 'DATA_CACHE_KEY'=>'file_cache_safe',
  45. );