Files
hyperf_service/config/autoload/ali.php
2024-10-30 16:31:13 +08:00

34 lines
1.2 KiB
PHP

<?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', 'LTAI5tFsBsKskcrRmkjpMXay'),
// 阿里云 accessKeySecret
'access_key_secret' => env('ALI_ACCESS_KEY_SECRET', 'YSIMtOGLu7W8tpQLKdgioTUYmgXB8M'),
// 阿里云 oss bucket
'bucket' => env('ALI_BUCKET', 'hhl-catering'),
// 阿里云 oss region
'region' => env('ALI_REGION', 'cn-shenzhen'),
// 阿里云 oss 临时上传目录
'upload_dir' => env('ALI_UPLOAD_DIR', '/tmp/upload'),
// 阿里云 oss 回调地址
'callback_url' => env('ALI_CALLBACK_URL', 'https://xxx.xxx.com/common/third/oss/callback'),
// 阿里云 oss 外网访问地址
'oss_url' => env('ALI_OSS_URL', 'https://playlet-video-asset.oss-cn-shenzhen.aliyuncs.com/'),
// 阿里云 sts 访问端点
'sts_endpoint' => env('ALI_STS_ENDPOINT', 'sts.cn-shenzhen.aliyuncs.com'),
// 阿里云 sts 角色
'role_arn' => env('ALI_ROLE_ARN', 'acs:ram::1644087445786901:role/oss'),
];