增加oss公共读桶

pull/1121/head
梁宇奇 2025-05-12 23:11:02 +08:00
parent 94adb2cb70
commit 1722fe5457
4 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class CommonController {
vo.setAccessKeySecret(credentials.getSecretAccessKey());
vo.setSecurityToken(credentials.getSecurityToken());
vo.setBucketName(ossProperties.getBucketName());
vo.setPublicBucketName(ossProperties.getPublicBucketName());
vo.setRegionId(ossProperties.getRegionId());
vo.setEndPoint(ossProperties.getEndPoint());
vo.setExpiredDuration(ossProperties.getExpiredDuration() - ossProperties.getStsCacheDuration());

View File

@ -50,6 +50,11 @@ public class STSCredentialsVO {
*/
@ApiModelProperty("bucketName")
private String bucketName;
/**
*
*/
@ApiModelProperty("publicBucketName")
private String publicBucketName;
/**
* https
*/

View File

@ -17,6 +17,7 @@ oss:
accessKeyId: LTAI5tFXTfY5Rsiwvrg9gUuk
accessKeySecret: Ebbj7anXSdbJwfm5zbTfHkJ5QWDbTP
bucketName: lyq-private
publicBucketName: lyq-public
https: true
regionId: cn-beijing
roleArn: acs:ram::1919425406190533:role/sts-role

View File

@ -19,6 +19,8 @@ public class OSSProperties {
private String bucketName;
private String publicBucketName;
private boolean https;
private String regionId;