Files
open-im-server/config/openim-push.yml
T

64 lines
2.2 KiB
YAML
Raw Normal View History

2024-04-19 22:23:08 +08:00
rpc:
2024-04-24 15:42:43 +08:00
# The IP address where this RPC service registers itself; if left blank, it defaults to the internal network IP
2024-09-12 10:38:17 +08:00
registerIP:
2024-04-24 15:42:43 +08:00
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
2024-04-19 22:23:08 +08:00
listenIP: 0.0.0.0
2024-12-06 17:25:42 +08:00
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
2024-12-06 17:25:42 +08:00
autoSetPorts: true
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
2024-12-18 18:10:25 +08:00
ports:
2024-12-06 17:25:42 +08:00
ratelimiter:
# Whether to enable rate limiting
enable: false
# WindowSize defines time duration per window
window: 20s
# BucketNum defines bucket number for each window
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 850
circuitBreaker:
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 500 # Request threshold; circuit breaker evaluation occurs when reached
2024-04-19 22:23:08 +08:00
prometheus:
2024-04-24 15:42:43 +08:00
# Enable or disable Prometheus monitoring
enable: false
2024-04-24 15:42:43 +08:00
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
2024-12-10 11:43:19 +08:00
# It will only take effect when autoSetPorts is set to false.
2024-12-18 18:10:25 +08:00
ports:
2024-04-19 22:23:08 +08:00
maxConcurrentWorkers: 3
2024-11-22 15:49:16 +08:00
#Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified.
enable:
2024-12-25 18:08:08 +08:00
getui:
2024-08-21 15:10:43 +08:00
pushUrl: https://restapi.getui.com/v2/$appId
2024-11-14 14:35:18 +08:00
masterSecret:
appKey:
intent:
channelID:
channelName:
2024-04-19 22:23:08 +08:00
fcm:
2024-06-13 12:13:13 +08:00
# Prioritize using file paths. If the file path is empty, use URL
2024-11-14 14:35:18 +08:00
filePath: # File path is concatenated with the parameters passed in through - c(`mage` default pass in `config/`) and filePath.
2024-08-21 15:10:43 +08:00
authURL: # Must start with https or http.
2024-11-19 09:59:21 +08:00
jpush:
2024-11-14 14:35:18 +08:00
appKey:
masterSecret:
pushURL:
pushIntent:
2024-04-19 22:23:08 +08:00
2024-04-24 15:42:43 +08:00
# iOS system push sound and badge count
2024-04-19 22:23:08 +08:00
iosPush:
2024-11-14 14:35:18 +08:00
pushSound: xxx
badgeCount: true
production: false
2024-04-19 22:23:08 +08:00
2024-09-12 10:38:17 +08:00
fullUserCache: true