mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 09:50:27 +08:00
config
This commit is contained in:
parent
bb1babad11
commit
9a9d6ac524
@ -20,6 +20,7 @@ kafka:
|
|||||||
|
|
||||||
credential:
|
credential:
|
||||||
minio:
|
minio:
|
||||||
|
endpoint: #发图片视频文件需要填写
|
||||||
accessKeyID: root
|
accessKeyID: root
|
||||||
secretAccessKey: openIM123
|
secretAccessKey: openIM123
|
||||||
|
|
||||||
|
@ -585,6 +585,7 @@ type usualConfig struct {
|
|||||||
Minio struct {
|
Minio struct {
|
||||||
AccessKeyID string `yaml:"accessKeyID"`
|
AccessKeyID string `yaml:"accessKeyID"`
|
||||||
SecretAccessKey string `yaml:"secretAccessKey"`
|
SecretAccessKey string `yaml:"secretAccessKey"`
|
||||||
|
Endpoint string `yaml:"endPoint"`
|
||||||
} `yaml:"minio"`
|
} `yaml:"minio"`
|
||||||
} `yaml:"credential"`
|
} `yaml:"credential"`
|
||||||
|
|
||||||
@ -677,10 +678,12 @@ func init() {
|
|||||||
if Config.Credential.Minio.AccessKeyID == "" {
|
if Config.Credential.Minio.AccessKeyID == "" {
|
||||||
Config.Credential.Minio.AccessKeyID = UsualConfig.Credential.Minio.AccessKeyID
|
Config.Credential.Minio.AccessKeyID = UsualConfig.Credential.Minio.AccessKeyID
|
||||||
}
|
}
|
||||||
|
|
||||||
if Config.Credential.Minio.SecretAccessKey == "" {
|
if Config.Credential.Minio.SecretAccessKey == "" {
|
||||||
Config.Credential.Minio.SecretAccessKey = UsualConfig.Credential.Minio.SecretAccessKey
|
Config.Credential.Minio.SecretAccessKey = UsualConfig.Credential.Minio.SecretAccessKey
|
||||||
}
|
}
|
||||||
|
if Config.Credential.Minio.Endpoint == "" {
|
||||||
|
Config.Credential.Minio.Endpoint = UsualConfig.Credential.Minio.Endpoint
|
||||||
|
}
|
||||||
|
|
||||||
if Config.MessageVerify.FriendVerify == nil {
|
if Config.MessageVerify.FriendVerify == nil {
|
||||||
Config.MessageVerify.FriendVerify = &UsualConfig.Messageverify.FriendVerify
|
Config.MessageVerify.FriendVerify = &UsualConfig.Messageverify.FriendVerify
|
||||||
@ -693,4 +696,5 @@ func init() {
|
|||||||
if Config.Push.Getui.Enable == nil {
|
if Config.Push.Getui.Enable == nil {
|
||||||
Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable
|
Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user