Add comments to the configuration file

This commit is contained in:
skiffer-git 2024-04-24 15:40:31 +08:00
parent ebf4aeea8d
commit 06a6d95f05
5 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,14 @@
# URI for database connection, leave empty if using address and credential settings directly
uri: '' uri: ''
# List of MongoDB server addresses
address: [ localhost:37017 ] address: [ localhost:37017 ]
# Name of the database
database: openim_v3 database: openim_v3
# Username for database authentication
username: openIM username: openIM
# Password for database authentication
password: openIM123 password: openIM123
# Maximum number of connections in the connection pool
maxPoolSize: 100 maxPoolSize: 100
# Maximum number of retry attempts for a failed database connection
maxRetry: 10 maxRetry: 10

View File

@ -17,32 +17,23 @@
# The options field 'isNotification' indicates if it's a notification. # The options field 'isNotification' indicates if it's a notification.
groupCreated: groupCreated:
isSendMsg: true isSendMsg: true
# Reliability level of the message sending. # Reliability level of the message sending.
# Set to 1 to send only when online, 2 for guaranteed delivery. # Set to 1 to send only when online, 2 for guaranteed delivery.
reliabilityLevel: 1 reliabilityLevel: 1
# This setting is effective only when 'isSendMsg' is true. # This setting is effective only when 'isSendMsg' is true.
# It controls whether to count unread messages. # It controls whether to count unread messages.
unreadCount: false unreadCount: false
# Configuration for offline push notifications. # Configuration for offline push notifications.
offlinePush: offlinePush:
# Enables or disables offline push notifications. # Enables or disables offline push notifications.
enable: false enable: false
# Title for the notification when a group is created. # Title for the notification when a group is created.
title: "create group title" title: "create group title"
# Description for the notification. # Description for the notification.
desc: "create group desc" desc: "create group desc"
# Additional information for the notification. # Additional information for the notification.
ext: "create group ext" ext: "create group ext"
# Content type is not added here.
# Content should use a JSON structure conforming to the protobuf format.
groupInfoSet: groupInfoSet:
isSendMsg: false isSendMsg: false
reliabilityLevel: 1 reliabilityLevel: 1

View File

@ -13,7 +13,8 @@ prometheus:
ports: [ 20107 ] ports: [ 20107 ]
maxConcurrentWorkers: 3 maxConcurrentWorkers: 3
enable: getui #"Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified."
enable: "geTui"
geTui: geTui:
pushUrl: "https://restapi.getui.com/v2/$appId" pushUrl: "https://restapi.getui.com/v2/$appId"
masterSecret: '' masterSecret: ''
@ -29,6 +30,7 @@ jpns:
pushURL: '' pushURL: ''
pushIntent: '' pushIntent: ''
# iOS system push sound and badge count
iosPush: iosPush:
pushSound: "xxx" pushSound: "xxx"
badgeCount: true badgeCount: true

View File

@ -14,6 +14,7 @@ prometheus:
object: object:
# Use MinIO as object storage, or set to "cos", "oss", "kodo", "aws", while also configuring the corresponding settings
enable: "minio" enable: "minio"
cos: cos:
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com

View File

@ -26,7 +26,7 @@ import (
) )
const ( const (
geTUI = "getui" geTUI = "geTui"
firebase = "fcm" firebase = "fcm"
jPush = "jpush" jPush = "jpush"
) )