config.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. // +----------------------------------------------------------------------
  13. // | 应用设置
  14. // +----------------------------------------------------------------------
  15. // 当前系统版本
  16. 'version' => 'v1.0.1',
  17. // 加密盐
  18. 'salt' => '~NickBai!@#',
  19. // socket server
  20. 'socket' => 'wss://ky.281570.com:9101',
  21. // 管理员登录时间
  22. 'save_time' => 86400,
  23. 'cache' => [
  24. 'type' => 'File',
  25. 'path' => CACHE_PATH,
  26. 'prefix' => '',
  27. 'expire' => 0,
  28. ],
  29. // 应用命名空间
  30. 'app_namespace' => 'app',
  31. 'exception_tmpl' => '',
  32. 'http_exception_template' => [
  33. // 定义404错误的重定向页面地址
  34. '404' => APP_PATH . '404.html',
  35. // 还可以定义其它的HTTP status
  36. '401' => APP_PATH . '404.html',
  37. '403' => APP_PATH . '404.html',
  38. ],
  39. // 应用调试模式
  40. 'app_debug' => true,
  41. // 应用Trace
  42. 'app_trace' => true
  43. ];