43 lines
1.3 KiB
PHP
Executable File
43 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
use think\facade\Env;
|
|
|
|
return [
|
|
// 默认磁盘
|
|
'default' => Env::get('filesystem.driver', 'local'),
|
|
// 磁盘列表
|
|
'disks' => [
|
|
'local' => [
|
|
// 磁盘类型
|
|
'type' => 'local',
|
|
// 磁盘路径
|
|
'root' => app()->getRootPath() . 'public/storage',
|
|
// 磁盘路径对应的外部URL路径
|
|
'url' => '/storage',
|
|
// 可见性
|
|
'visibility' => 'public',
|
|
],
|
|
'video' => [
|
|
// 磁盘类型
|
|
'type' => 'local',
|
|
// 磁盘路径
|
|
'root' => app()->getRootPath() . 'public/storage/videos',
|
|
// 磁盘路径对应的外部URL路径
|
|
'url' => '/storage/videos',
|
|
// 可见性
|
|
'visibility' => 'public',
|
|
],
|
|
'backup' => [
|
|
// 磁盘类型
|
|
'type' => 'local',
|
|
// 磁盘路径
|
|
'root' => app()->getRootPath() . 'public/storage/backup',
|
|
// 磁盘路径对应的外部URL路径
|
|
'url' => '/storage/backup',
|
|
// 可见性
|
|
'visibility' => 'public',
|
|
],
|
|
// 更多的磁盘配置信息
|
|
],
|
|
];
|