app.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ 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_timezone' => 'Asia/Shanghai',
  26. // 应用映射(自动多应用模式有效)
  27. 'app_map' => [],
  28. // 域名绑定(自动多应用模式有效)
  29. 'domain_bind' => [],
  30. // 禁止URL访问的应用列表(自动多应用模式有效)
  31. 'deny_app_list' => [],
  32. // 非调试模式时显示错误的消息
  33. 'error_message' => '页面错误!请稍后再试~',
  34. // CORS 自动配置跨域
  35. 'cors_auto' => true,
  36. // CORS 配置跨域域名
  37. 'cors_host' => [],
  38. // CORS 授权请求方法
  39. 'cors_methods' => 'GET,PUT,POST,PATCH,DELETE',
  40. // CORS 跨域头部字段
  41. 'cors_headers' => 'Api-Name,Api-Type,Api-Token,User-Form-Token,User-Token,Token',
  42. ];