mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 重写s3客户端
This commit is contained in:
@@ -405,6 +405,7 @@ func (r *backupRepo) getStorage(backupStorage biz.BackupStorage) (storage.Storag
|
||||
AccessKeyID: backupStorage.Info.AccessKey,
|
||||
SecretAccessKey: backupStorage.Info.SecretKey,
|
||||
Endpoint: backupStorage.Info.Endpoint,
|
||||
Scheme: backupStorage.Info.Scheme,
|
||||
BasePath: backupStorage.Info.Path,
|
||||
AddressingStyle: storage.S3AddressingStyle(backupStorage.Info.Style),
|
||||
})
|
||||
|
||||
@@ -129,6 +129,7 @@ func (s *BackupStorageService) validateStorage(accountType string, info types.Ba
|
||||
AccessKeyID: info.AccessKey,
|
||||
SecretAccessKey: info.SecretKey,
|
||||
Endpoint: info.Endpoint,
|
||||
Scheme: info.Scheme,
|
||||
BasePath: info.Path,
|
||||
AddressingStyle: storage.S3AddressingStyle(info.Style),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user