This commit is contained in:
Default
2025-03-18 22:51:45 +08:00
parent eb9035a7ae
commit 526d3f47f4
103 changed files with 542 additions and 4025 deletions

View File

@@ -6,19 +6,32 @@
return [
// 应用的命名空间
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
// 默认应用
'default_app' => 'home',
// 默认时区
'default_timezone' => 'Asia/Shanghai',
// 应用映射(自动多应用模式有效)
'app_map' => [],
'app_map' => [
'admin' => 'admin'
],
// 域名绑定(自动多应用模式有效)
'domain_bind' => [],
'domain_bind' => [
'*' => 'home',
'adapi' => 'admin',
],
// 禁止URL访问的应用列表自动多应用模式有效
'deny_app_list' => [],
'deny_app_list' => [
'task',
'model',
],
// 异常页面的模板文件
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',

24
code/config/storage.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
// +----------------------------------------------------------------------
// | MinIO设置
// +----------------------------------------------------------------------
return [
'minio' => [
// 端点
'endpoint' => env('MINIO_END_POINT', '127.0.0.1:9000'),
// KEY
'key' => env('MINIO_KEY', ''),
// 密钥
'secret' => env('MINIO_SECRET', ''),
// 区域
'region' => env('MINIO_REGION', 'us-east-1'),
// 桶
'bucket' => env('MINIO_BUCKET', 'my-bucket'),
],
'local' => [
'dir' => env('STORAGE_LOCAL_DIR', ''),
]
];