增加 AWS S3 存储

This commit is contained in:
欧阳氏
2022-07-31 01:14:26 +08:00
parent e8f7ad6c09
commit cfa9f2d13f
9 changed files with 151 additions and 5 deletions
+10
View File
@@ -73,6 +73,16 @@ type config struct {
EndpointInnerEnable bool `yaml:"endpointInnerEnable"`
StorageTime int `yaml:"storageTime"`
} `yaml:"minio"`
Aws struct {
AccessKeyID string `yaml:"accessKeyID"`
AccessKeySecret string `yaml:"accessKeySecret"`
Region string `yaml:"region"`
Bucket string `yaml:"bucket"`
FinalHost string `yaml:"finalHost"`
RoleArn string `yaml:"roleArn"`
ExternalId string `yaml:"externalId"`
RoleSessionName string `yaml:"roleSessionName"`
} `yaml:"aws"`
}
Dtm struct {
+2 -1
View File
@@ -184,7 +184,8 @@ const (
//Minio
MinioDurationTimes = 3600
//Aws
AwsDurationTimes = 3600
// verificationCode used for
VerificationCodeForRegister = 1
VerificationCodeForReset = 2