提交
This commit is contained in:
47
config/filesystem.php
Normal file
47
config/filesystem.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// 默认磁盘
|
||||
'default' => 'local',
|
||||
// 磁盘列表
|
||||
'disks' => [
|
||||
'local' => [
|
||||
'type' => 'local',
|
||||
'root' => app()->getRuntimePath() . 'storage',
|
||||
],
|
||||
'public' => [
|
||||
// 磁盘类型
|
||||
'type' => 'local',
|
||||
// 磁盘路径
|
||||
'root' => app()->getRootPath() . 'public/storage',
|
||||
// 磁盘路径对应的外部URL路径
|
||||
'url' => '/storage',
|
||||
// 可见性
|
||||
'visibility' => 'public',
|
||||
],
|
||||
's3'=>[
|
||||
'version' => 'latest',
|
||||
'region' => 'us-east-1',
|
||||
'endpoint' => 'https://oss.jzvisa.com',
|
||||
'use_path_style_endpoint' => true,
|
||||
'credentials' => [
|
||||
'key' => 'aq72GoQAniHsTgXMmC9Z',
|
||||
'secret' => '4ucvm7yvoGV9bAimLSHNXIWC7NkaZjLKOHEZeHUe',
|
||||
],
|
||||
],
|
||||
],
|
||||
'upload_conf' => [
|
||||
'fileSize'=>'10485760',
|
||||
'fileExt'=>['jpg','png','gif','pdf','doc','docx'],
|
||||
'fallbackDir'=>app()->getRuntimePath() . 'storage/oss-fallback',
|
||||
],
|
||||
'imageMimeTypes' => [
|
||||
'image/jpeg',
|
||||
'image/png',
|
||||
'image/gif',
|
||||
'image/webp',
|
||||
'image/svg+xml',
|
||||
'image/bmp',
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user