feat: config
This commit is contained in:
30
config/autoload/ali.php
Normal file
30
config/autoload/ali.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
use function Hyperf\Support\env;
|
||||
|
||||
return [
|
||||
// 阿里云 accessKeyId
|
||||
'access_key_id' => env('ALI_ACCESS_KEY_ID', ''),
|
||||
// 阿里云 accessKeySecret
|
||||
'access_key_secret' => env('ALI_ACCESS_KEY_SECRET', ''),
|
||||
// 阿里云 oss bucket
|
||||
'bucket' => env('ALI_BUCKET', ''),
|
||||
// 阿里云 oss region
|
||||
'region' => env('ALI_REGION', 'cn-shenzhen'),
|
||||
// 阿里云 oss 临时上传目录
|
||||
'upload_dir' => env('ALI_UPLOAD_DIR', ''),
|
||||
// 阿里云 oss 回调地址
|
||||
'callback_url' => env('ALI_CALLBACK_URL', ''),
|
||||
// 阿里云 oss 外网访问地址
|
||||
'oss_url' => env('ALI_OSS_URL', ''),
|
||||
];
|
||||
Reference in New Issue
Block a user