38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
use think\facade\Env;
|
|
|
|
return [
|
|
// 默认磁盘
|
|
'default' => Env::get('filesystem.driver', 'local'),
|
|
// 磁盘列表
|
|
'disks' => [
|
|
'local' => [
|
|
'type' => 'local',
|
|
'root' => app()->getRuntimePath() . 'storage',
|
|
],
|
|
'public' => [
|
|
// 磁盘类型
|
|
'type' => 'local',
|
|
// 磁盘路径
|
|
'root' => app()->getRootPath() . 'public/storage',
|
|
// 磁盘路径对应的外部URL路径
|
|
'url' => '/storage',
|
|
// 可见性
|
|
'visibility' => 'public',
|
|
],
|
|
'aliyun'=>[
|
|
'type'=>'Aliyun',//驱动使用阿里云
|
|
'accessId' => 'LTAI5t7mhH3ij2cNWs1zhPmv',
|
|
'accessSecret' => 'gqo2wMpvi8h5bDBmCpMje6BaiXvcPu',
|
|
'bucket' => 'lihai001',
|
|
'endpoint' => '"oss-cn-chengdu.aliyuncs.com',
|
|
// 'timeout' => 3600,
|
|
// 'connectTimeout' => 10,
|
|
// 'isCName' => false,
|
|
// 'token' => '',
|
|
]
|
|
// 更多的磁盘配置信息
|
|
],
|
|
];
|