初始化提交
This commit is contained in:
58
config/app.php
Normal file
58
config/app.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | Static Plugin for ThinkAdmin
|
||||
// +----------------------------------------------------------------------
|
||||
// | 版权所有 2014~2024 ThinkAdmin [ thinkadmin.top ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | 官方网站: https://thinkadmin.top
|
||||
// +----------------------------------------------------------------------
|
||||
// | 开源协议 ( https://mit-license.org )
|
||||
// | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||||
// +----------------------------------------------------------------------
|
||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-static
|
||||
// | github 代码仓库:https://github.com/zoujingli/think-plugs-static
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 应用命名空间
|
||||
'app_namespace' => '',
|
||||
// 应用快速访问
|
||||
'app_express' => true,
|
||||
// 是否启用路由
|
||||
'with_route' => true,
|
||||
// 超级用户账号
|
||||
'super_user' => 'admin',
|
||||
// 默认时区
|
||||
'default_timezone' => 'Asia/Shanghai',
|
||||
// 应用映射(多应用模式有效)
|
||||
'app_map' => [],
|
||||
// 域名绑定(多应用模式有效)
|
||||
'domain_bind' => [],
|
||||
// 禁止访问(多应用模式有效)
|
||||
'deny_app_list' => [],
|
||||
// CORS 启用状态(默认开启跨域)
|
||||
'cors_on' => true,
|
||||
// CORS 配置跨域域名(仅需填域名,留空则自动域名)
|
||||
'cors_host' => [],
|
||||
// CORS 授权请求方法
|
||||
'cors_methods' => 'GET,PUT,POST,PATCH,DELETE',
|
||||
// CORS 跨域头部字段
|
||||
'cors_headers' => 'Api-Type,Api-Name,Api-Uuid,Jwt-Token,Api-Token,User-Form-Token,User-Token,Token',
|
||||
// 应用名称
|
||||
'app_names' =>[
|
||||
'admin' => '系统管理',
|
||||
'manager' => '后台管理'
|
||||
],
|
||||
// RBAC 登录页面(填写登录地址)
|
||||
'rbac_login' => '',
|
||||
// RBAC 忽略应用(填写应用名称)
|
||||
'rbac_ignore' => ['index'],
|
||||
// 显示错误消息内容,仅生产模式有效
|
||||
'error_message' => '页面错误!请稍后再试~',
|
||||
// 异常状态模板配置,仅生产模式有效
|
||||
'http_exception_template' => [
|
||||
404 => syspath('public/static/theme/err/404.html'),
|
||||
500 => syspath('public/static/theme/err/500.html'),
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user