Files
2025-09-12 21:00:34 +08:00

67 lines
2.0 KiB
Plaintext

# Device listen address and port (e.g., :5912 for all interfaces, 127.0.0.1:5912 for localhost only)
#addr-dev: :5912
# User listen address and port (e.g., :5913 for all interfaces, 127.0.0.1:5913 for localhost only)
#addr-user: :5913
# HTTP proxy address and port (automatically select an available port by default)
#addr-http-proxy:
# HTTP proxy redirect URL
#http-proxy-redir-url:
# Domain used for setting cookies
#http-proxy-redir-domain:
# Authentication token for device connections
#token: a1d4cdb1a3cd6a0e94aa3599afcddcf5
# Device hook URL - called when a device connects (if configured)
# Request method: POST
# Parameters in JSON format: {"group": "group ID", "id": "device ID", "token": "device TOKEN"}
# Return HTTP 200 to allow the device to connect
#dev-hook-url: http://127.0.0.1:8080/rttys-dev-hook
# User hook URL - called when users access /connect/:devid, /cmd/:devid, /web/, or /web2/ APIs (if configured)
# Rttys will pass all original headers, along with additional specific headers:
# X-Rttys-Hook: true
# X-Original-Method: original request method
# X-Original-URL: original request URL
# Return HTTP 200 to allow the user to access the API endpoint
#user-hook-url: http://127.0.0.1:8080/rttys-user-hook
# Local access authentication (disable authentication for local requests)
#local-auth: false
# Web management password
#password: rttys
# CORS support (allow all origins for cross-domain requests)
#allow-origins: false
# SSL/TLS for listen device
#sslcert:
#sslkey:
#cacert:
# KCP protocol Support
#kcp: false
# Whether enable nodelay mode for KCP
#kcp-nodelay: false
# KCP protocol internal work interval
#kcp-interval: 100
# Fast retransmission mode for KCP
#kcp-resend: 0
# Whether to turn off flow control for KCP
#kcp-nc: false
# Maximum send window for KCP
#kcp-sndwnd: 32
# Maximum receive window for KCP
#kcp-rcvwnd: 128
# Maximum transmission unit for KCP
#kcp-mtu: 1400
# FEC data shard for KCP
#kcp-data-shard: 10
# FEC parity shard for KCP
#kcp-parity-shard: 3