app.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // | 免费声明 ( https://thinkadmin.top/disclaimer )
  11. // +----------------------------------------------------------------------
  12. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  13. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  14. // +----------------------------------------------------------------------
  15. return [
  16. // 应用命名空间
  17. 'app_namespace' => '',
  18. // 应用快速访问
  19. 'app_express' => true,
  20. // 是否启用路由
  21. 'with_route' => true,
  22. // 超级用户账号
  23. 'super_user' => 'admin',
  24. // 默认应用
  25. 'default_app' => 'index',
  26. // 默认时区
  27. 'default_timezone' => 'Asia/Shanghai',
  28. // 应用映射(自动多应用模式有效)
  29. 'app_map' => [],
  30. // 域名绑定(自动多应用模式有效)
  31. 'domain_bind' => [],
  32. // 禁止URL访问的应用列表(自动多应用模式有效)
  33. 'deny_app_list' => [],
  34. // 非调试模式时显示错误的消息
  35. 'error_message' => '页面错误!请稍后再试~',
  36. // CORS 自动配置跨域
  37. 'cors_auto' => true,
  38. // CORS 配置跨域域名
  39. 'cors_host' => [],
  40. // CORS 授权请求方法
  41. 'cors_methods' => 'GET,PUT,POST,PATCH,DELETE',
  42. // CORS 跨域头部字段
  43. 'cors_headers' => 'Api-Name,Api-Type,Api-Token,User-Form-Token,User-Token,Token',
  44. ];