feat: 新增阿里 oss 上传组件
This commit is contained in:
18
modules/Common/config/upload.php
Normal file
18
modules/Common/config/upload.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
return [
|
||||
// 文件最大
|
||||
'max_size' => 10 * 1024 * 1024,
|
||||
|
||||
// oss 配置
|
||||
'oss' => [
|
||||
'bucket' => env('ALIOSS_BUCKET'),
|
||||
|
||||
'access_id' => env('ALIOSS_ACCESS_ID'),
|
||||
|
||||
'access_secret' => env('ALIOSS_ACCESS_SECRET'),
|
||||
|
||||
'endpoint' => env('ALIOSS_ENDPOINT'),
|
||||
|
||||
'dir' => env('ALIOSS_UPLOAD_DIR')
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user