catchAdmin/config/filesystem.php
2020-09-08 14:13:00 +08:00

61 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use think\facade\Env;
return [
// 默认磁盘
'default' => Env::get('filesystem.driver', 'local'),
// 磁盘列表
'disks' => [
'local' => [
'type' => 'local',
'root' => app()->getRootPath() . 'public'.DIRECTORY_SEPARATOR.'images',
'domain' => env('app.api_url'),
],
'public' => [
// 磁盘类型
'type' => 'local',
// 磁盘路径
'root' => app()->getRootPath() . 'public/storage',
// 磁盘路径对应的外部URL路径
'url' => '/storage',
// 可见性
'visibility' => 'public',
],
// 更多的磁盘配置信息
'qiniu' => [
'type' => 'qiniu',
'access_key' => '',
'secret_key' => '',
'bucket' => '',
'domain' => '',
],
'oss' => [
'type' => 'oss',
'prefix' => '',
'access_key' => '',
'secret_key' => '',
'end_point' => '', // sslhttps://iidestiny.com
'bucket' => '',
'is_cname' => false
],
// 腾讯云配置
'qcloud' => [
'type' => 'qcloud',
'region' => '',
'credentials' => [
'appId' => '', // 域名中数字部分
'secretId' => '',
'secretKey' => '',
],
'bucket' => '',
'timeout' => 60,
'connect_timeout' => 60,
'cdn' => '',
'scheme' => 'https',
'read_from_cdn' => false,
]
]
];