mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 09:50:27 +08:00
fix bug
This commit is contained in:
parent
4930906b62
commit
6f968342dc
@ -31,8 +31,8 @@ func MinioInit() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
opts := &minio.Options{
|
opts := &minio.Options{
|
||||||
Creds: credentials.NewStaticV4(config.Config.Credential.Minio.AccessKeyID, config.Config.Credential.Minio.SecretAccessKey, ""),
|
Creds: credentials.NewStaticV4(config.Config.Credential.Minio.AccessKeyID, config.Config.Credential.Minio.SecretAccessKey, ""),
|
||||||
Region: config.Config.Credential.Minio.Location,
|
//Region: config.Config.Credential.Minio.Location,
|
||||||
}
|
}
|
||||||
if minioUrl.Scheme == "http" {
|
if minioUrl.Scheme == "http" {
|
||||||
opts.Secure = false
|
opts.Secure = false
|
||||||
@ -48,7 +48,7 @@ func MinioInit() {
|
|||||||
}
|
}
|
||||||
opt := minio.MakeBucketOptions{
|
opt := minio.MakeBucketOptions{
|
||||||
Region: config.Config.Credential.Minio.Location,
|
Region: config.Config.Credential.Minio.Location,
|
||||||
ObjectLocking: true,
|
ObjectLocking: false,
|
||||||
}
|
}
|
||||||
err = MinioClient.MakeBucket(context.Background(), config.Config.Credential.Minio.Bucket, opt)
|
err = MinioClient.MakeBucket(context.Background(), config.Config.Credential.Minio.Bucket, opt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user