catchAdmin/config/filesystem.php

61 lines
1.7 KiB
PHP
Raw Normal View History

2019-12-02 23:04:43 +08:00
<?php
use think\facade\Env;
return [
// 默认磁盘
'default' => Env::get('filesystem.driver', 'local'),
// 磁盘列表
'disks' => [
'local' => [
'type' => 'local',
2020-07-26 18:43:09 +08:00
'root' => app()->getRootPath() . 'public'.DIRECTORY_SEPARATOR.'images',
2020-06-28 08:33:34 +08:00
'domain' => env('API_URL'),
2019-12-02 23:04:43 +08:00
],
'public' => [
// 磁盘类型
'type' => 'local',
// 磁盘路径
'root' => app()->getRootPath() . 'public/storage',
// 磁盘路径对应的外部URL路径
'url' => '/storage',
// 可见性
'visibility' => 'public',
],
// 更多的磁盘配置信息
2020-01-25 20:06:36 +08:00
'qiniu' => [
'type' => 'qiniu',
2020-01-25 20:16:28 +08:00
'access_key' => '',
'secret_key' => '',
'bucket' => '',
'domain' => '',
2020-01-25 20:06:36 +08:00
],
'oss' => [
'type' => 'oss',
'prefix' => '',
2020-01-25 20:16:28 +08:00
'access_key' => '',
'secret_key' => '',
'end_point' => '', // sslhttps://iidestiny.com
'bucket' => '',
2020-01-25 20:06:36 +08:00
'is_cname' => false
],
// 腾讯云配置
'qcloud' => [
'type' => 'qcloud',
2020-01-25 20:16:28 +08:00
'region' => '',
2020-01-25 20:06:36 +08:00
'credentials' => [
2020-01-25 20:16:28 +08:00
'appId' => '', // 域名中数字部分
'secretId' => '',
'secretKey' => '',
2020-01-25 20:06:36 +08:00
],
2020-01-25 20:16:28 +08:00
'bucket' => '',
2020-01-25 20:06:36 +08:00
'timeout' => 60,
'connect_timeout' => 60,
'cdn' => '',
'scheme' => 'https',
'read_from_cdn' => false,
]
]
2019-12-02 23:04:43 +08:00
];