Skip to content

Commit

Permalink
Add comments to the configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed Apr 24, 2024
1 parent ebf4aee commit 06a6d95
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
9 changes: 8 additions & 1 deletion config/mongodb.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# URI for database connection, leave empty if using address and credential settings directly
uri: ''
# List of MongoDB server addresses
address: [ localhost:37017 ]
# Name of the database
database: openim_v3
# Username for database authentication
username: openIM
# Password for database authentication
password: openIM123
# Maximum number of connections in the connection pool
maxPoolSize: 100
maxRetry: 10
# Maximum number of retry attempts for a failed database connection
maxRetry: 10
9 changes: 0 additions & 9 deletions config/notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,23 @@
# The options field 'isNotification' indicates if it's a notification.
groupCreated:
isSendMsg: true

# Reliability level of the message sending.
# Set to 1 to send only when online, 2 for guaranteed delivery.
reliabilityLevel: 1

# This setting is effective only when 'isSendMsg' is true.
# It controls whether to count unread messages.
unreadCount: false

# Configuration for offline push notifications.
offlinePush:
# Enables or disables offline push notifications.
enable: false

# Title for the notification when a group is created.
title: "create group title"

# Description for the notification.
desc: "create group desc"

# Additional information for the notification.
ext: "create group ext"

# Content type is not added here.
# Content should use a JSON structure conforming to the protobuf format.

groupInfoSet:
isSendMsg: false
reliabilityLevel: 1
Expand Down
4 changes: 3 additions & 1 deletion config/openim-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ prometheus:
ports: [ 20107 ]

maxConcurrentWorkers: 3
enable: getui
#"Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified."
enable: "geTui"
geTui:
pushUrl: "https://restapi.getui.com/v2/$appId"
masterSecret: ''
Expand All @@ -29,6 +30,7 @@ jpns:
pushURL: ''
pushIntent: ''

# iOS system push sound and badge count
iosPush:
pushSound: "xxx"
badgeCount: true
Expand Down
1 change: 1 addition & 0 deletions config/openim-rpc-third.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ prometheus:


object:
# Use MinIO as object storage, or set to "cos", "oss", "kodo", "aws", while also configuring the corresponding settings
enable: "minio"
cos:
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
Expand Down
2 changes: 1 addition & 1 deletion internal/push/offlinepush/offlinepusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
geTUI = "getui"
geTUI = "geTui"
firebase = "fcm"
jPush = "jpush"
)
Expand Down

0 comments on commit 06a6d95

Please sign in to comment.