package com.ruoyi.dk.oss.ali;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>created on 2021/3/3</p>
 *
 * @author zhangliang
 */
@Data
@ToString(exclude={"accessKeyId","accessKeySecret"})
@Configuration
@ConfigurationProperties(prefix = "ali.oss")
public class OssConfig {
	private boolean enable = false;
	private String endpoint;  		// 连接区域地址
	private String cdnDomain; 		// cdn 域名
	private String accessKeyId;  	// 连接keyId
	private String accessKeySecret; // 连接秘钥
	private String bucketName;  	// 需要存储的bucketName
	private Long durationSeconds = 3600L;
	private String roleArn;
	private String roleSessionName = "sts-session";

	private String key = "upload/";
}
