3 changed files with 112 additions and 3 deletions
@ -0,0 +1,94 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
/** |
||||
|
* This file is part of Hyperf. |
||||
|
* |
||||
|
* @link https://www.hyperf.io |
||||
|
* @document https://hyperf.wiki |
||||
|
* @contact group@hyperf.io |
||||
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE |
||||
|
*/ |
||||
|
return [ |
||||
|
'default' => 'local', |
||||
|
'storage' => [ |
||||
|
'local' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\LocalAdapterFactory::class, |
||||
|
'root' => __DIR__ . '/../../runtime', |
||||
|
], |
||||
|
'ftp' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\FtpAdapterFactory::class, |
||||
|
'host' => 'ftp.example.com', |
||||
|
'username' => 'username', |
||||
|
'password' => 'password', |
||||
|
// 'port' => 21,
|
||||
|
// 'root' => '/path/to/root',
|
||||
|
// 'passive' => true,
|
||||
|
// 'ssl' => true,
|
||||
|
// 'timeout' => 30,
|
||||
|
// 'ignorePassiveAddress' => false,
|
||||
|
], |
||||
|
'memory' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\MemoryAdapterFactory::class, |
||||
|
], |
||||
|
's3' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\S3AdapterFactory::class, |
||||
|
'credentials' => [ |
||||
|
'key' => env('S3_KEY'), |
||||
|
'secret' => env('S3_SECRET'), |
||||
|
], |
||||
|
'region' => env('S3_REGION'), |
||||
|
'version' => 'latest', |
||||
|
'bucket_endpoint' => false, |
||||
|
'use_path_style_endpoint' => false, |
||||
|
'endpoint' => env('S3_ENDPOINT'), |
||||
|
'bucket_name' => env('S3_BUCKET'), |
||||
|
], |
||||
|
'minio' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\S3AdapterFactory::class, |
||||
|
'credentials' => [ |
||||
|
'key' => env('S3_KEY'), |
||||
|
'secret' => env('S3_SECRET'), |
||||
|
], |
||||
|
'region' => env('S3_REGION'), |
||||
|
'version' => 'latest', |
||||
|
'bucket_endpoint' => false, |
||||
|
'use_path_style_endpoint' => true, |
||||
|
'endpoint' => env('S3_ENDPOINT'), |
||||
|
'bucket_name' => env('S3_BUCKET'), |
||||
|
], |
||||
|
'oss' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\AliyunOssAdapterFactory::class, |
||||
|
'accessId' => env('OSS_ACCESS_ID'), |
||||
|
'accessSecret' => env('OSS_ACCESS_SECRET'), |
||||
|
'bucket' => env('OSS_BUCKET'), |
||||
|
'endpoint' => env('OSS_ENDPOINT'), |
||||
|
// 'timeout' => 3600,
|
||||
|
// 'connectTimeout' => 10,
|
||||
|
// 'isCName' => false,
|
||||
|
// 'token' => '',
|
||||
|
], |
||||
|
'qiniu' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\QiniuAdapterFactory::class, |
||||
|
'accessKey' => env('QINIU_ACCESS_KEY'), |
||||
|
'secretKey' => env('QINIU_SECRET_KEY'), |
||||
|
'bucket' => env('QINIU_BUCKET'), |
||||
|
'domain' => env('QINBIU_DOMAIN'), |
||||
|
], |
||||
|
'cos' => [ |
||||
|
'driver' => \Hyperf\Filesystem\Adapter\CosAdapterFactory::class, |
||||
|
'region' => env('COS_REGION'), |
||||
|
'credentials' => [ |
||||
|
'appId' => env('COS_APPID'), |
||||
|
'secretId' => env('COS_SECRET_ID'), |
||||
|
'secretKey' => env('COS_SECRET_KEY'), |
||||
|
], |
||||
|
'bucket' => env('COS_BUCKET'), |
||||
|
'read_from_cdn' => false, |
||||
|
// 'timeout' => 60,
|
||||
|
// 'connect_timeout' => 60,
|
||||
|
// 'cdn' => '',
|
||||
|
// 'scheme' => 'https',
|
||||
|
], |
||||
|
], |
||||
|
]; |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue