open-im-server/config/openim-rpc-rtc.yml
2026-04-06 16:21:00 +08:00

32 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

rpc:
# The IP address where this RPC service registers itself; if left blank, it defaults to the internal network IP
registerIP:
# 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
listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
autoSetPorts: true
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances.
# It will only take effect when autoSetPorts is set to false.
ports: [ 10400 ]
prometheus:
# Enable or disable Prometheus monitoring
enable: true
# List of ports that Prometheus listens on; these must match the number of rpc.ports.
# It will only take effect when autoSetPorts is set to false.
ports: [ 12400 ]
liveKit:
# LiveKit server address reachable from the RTC service (internal/backend address)
# When deployed via docker-compose, use the service name 'livekit'
internalAddress: http://livekit:7880
# LiveKit server address reachable from clients (external/public address)
# Production should use wss://livekit.example.com with TLS
externalAddress: ws://192.168.1.91:7880
# LiveKit API key (configured in your LiveKit server)
apiKey: devkey
# LiveKit API secret须 ≥32 字符,须与 config/livekit.yaml keys 中对应值一致)
apiSecret: openim-livekit-default-secret-32chars-min
# Token expiry in seconds (default: 3600 = 1 hour)
tokenExpiry: 3600