Log:Level:none# Log level: none, error, warning, info, debug AccessPath:# /etc/XrayR/access.LogErrorPath:# /etc/XrayR/error.logDnsConfigPath:# /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/dns.html for helpRouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/routing.html for help
InboundConfigPath: # /etc/XrayR/custom_inbound.json # Path to custom inbound config, check https://xtls.github.io/config/inbound.html for help
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help
ConnetionConfig:Handshake:4# Handshake time limit, SecondConnIdle:10# Connection idle time limit, SecondUplinkOnly:2# Time limit when the connection downstream is closed, SecondDownlinkOnly:4# Time limit when the connection is closed after the uplink is closed, SecondBufferSize:64# The internal cache size of each connection, kB Nodes: -PanelType:"SSpanel"# Panel type: SSpanel, V2board, PMpanel, ProxypanelApiConfig:ApiHost:"http://127.0.0.1:667"ApiKey:"123"NodeID:41NodeType:V2ray# Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-PluginTimeout:30# Timeout for the api requestEnableVless:false# Enable Vless for V2ray TypeEnableXTLS:false# Enable XTLS for V2ray and TrojanSpeedLimit:0# Mbps, Local settings will replace remote settings, 0 means disableDeviceLimit:0# Local settings will replace remote settings, 0 means disableRuleListPath:# /etc/XrayR/rulelist Path to local rulelist fileControllerConfig:ListenIP:0.0.0.0# IP address you want to listenSendIP:0.0.0.0# IP address you want to send pacakageUpdatePeriodic:60# Time to update the nodeinfo, how many sec.EnableDNS:false# Use custom DNS config, Please ensure that you set the dns.json wellDNSType:AsIs# AsIs, UseIP, UseIPv4, UseIPv6, DNS strategyDisableUploadTraffic:false# Disable Upload Traffic to the panelDisableGetRule:false# Disable Get Rule from the panelDisableIVCheck:false# Disable the anti-reply protection for ShadowsocksDisableSniffing:false# Disable domain sniffing EnableProxyProtocol:false# Only works for WebSocket and TCPEnableFallback:false# Only support for Trojan and VlessFallBackConfigs:# Support multiple fallbacks -SNI:# TLS SNI(Server Name Indication), Empty for anyPath:# HTTP PATH, Empty for anyDest:80# Required, Destination of fallback, check https://xtls.github.io/config/fallback/ for details.ProxyProtocolVer:0# Send PROXY protocol version, 0 for dsableCertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain:"node1.test.com"# Domain to certCertFile:/etc/XrayR/cert/node1.test.com.cert# Provided if the CertMode is fileKeyFile:/etc/XrayR/cert/node1.test.com.keyProvider:alidns# DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email:test@me.comDNSEnv:# DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY:aaaALICLOUD_SECRET_KEY:bbb -PanelType:"V2board"# Panel type: SSpanel, V2boardApiConfig:ApiHost:"http://V2board.com"ApiKey:"123"NodeID:42NodeType:Trojan# Node type: V2ray, Shadowsocks, TrojanTimeout:30# Timeout for the api requestEnableVless:false# Enable Vless for V2ray Type, Prefer remote configurationEnableXTLS:false# Enable XTLS for V2ray and Trojan, Prefer remote configurationControllerConfig:ListenIP:0.0.0.0# IP address you want to listenUpdatePeriodic:60# Time to update the nodeinfo, how many sec.EnableDNS:false# Enable custom DNS config, Please ensure that you set the dns.json wellCertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain:"node2.test.com"# Domain to certCertFile:/etc/XrayR/cert/node2.test.com.cert# Provided if the CertMode is fileKeyFile:/etc/XrayR/cert/node2.test.com.keyProvider:alidns# DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email:test@me.comDNSEnv:# DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY:aaaALICLOUD_SECRET_KEY:bbb
配置文件设置说明
基础配置
基础配置是对所有节点生效的配置。
Log:Level:debug# Log level: none, error, warning, info, debug AccessPath:# /etc/XrayR/access.LogErrorPath:# /etc/XrayR/error.logDnsConfigPath:# /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/dns.html for helpRouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/routing.html for help
InboundConfigPath: # /etc/XrayR/custom_inbound.json # Path to custom inbound config, check https://xtls.github.io/config/inbound.html for help
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help
ConnetionConfig:Handshake:4# Handshake time limit, SecondConnIdle:10# Connection idle time limit, SecondUplinkOnly:2# Time limit when the connection downstream is closed, SecondDownlinkOnly:4# Time limit when the connection is closed after the uplink is closed, SecondBufferSize:64# The internal cache size of each connection, kB
DnsConfigPath:# /etc/XrayR/dns.json Path to dns config
参数
选项
说明
DnsConfigPath
无
自定义DNS配置文件的路径
#### 自定义路由配置
指定路由配置文件文件路径
RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/base/route/ for help
参数
选项
说明
RouteConfigPath
无
自定义路由配置文件的路径
自定义入口设置
InboundConfigPath: # /etc/XrayR/custom_inbound.json # Path to custom inbound config, check https://xtls.github.io/config/inbound.html for help
参数
选项
说明
InboundConfigPath
无
自定义入口配置文件的路径
#### 自定义出口配置
指定出口配置文件文件路径
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/base/outbound/ for help
参数
选项
说明
OutboundConfigPath
无
自定义出口配置文件的路径
连接控制
自定义连接释放的相关配置,可以一定程度优化内存占用
ConnetionConfig:Handshake:4# Handshake time limit, SecondConnIdle:10# Connection idle time limit, SecondUplinkOnly:2# Time limit when the connection downstream is closed, SecondDownlinkOnly:4# Time limit when the connection is closed after the uplink is closed, SecondBufferSize:64# The internal cache size of each connection, kB
Nodes: -PanelType:"SSpanel"# Panel type: SSpanel, V2board, PMpanelApiConfig:ApiHost:"http://127.0.0.1:667"ApiKey:"123"NodeID:41NodeType:V2ray# Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-PluginTimeout:30# Timeout for the api request, Default is 5 secEnableVless:false# Enable Vless for V2ray TypeEnableXTLS:false# Enable XTLS for V2ray and TrojanSpeedLimit:0# Mbps, Local settings will replace remote settings, 0 means disableDeviceLimit:0# Local settings will replace remote settings, 0 means disableRuleListPath:# /etc/XrayR/rulelist Path to local rulelist fileControllerConfig:ListenIP:0.0.0.0# IP address you want to listenSendIP:0.0.0.0# IP address you want to send pacakageUpdatePeriodic:60# Time to update the nodeinfo, how many sec.EnableDNS:false# Use custom DNS config, Please ensure that you set the dns.json wellDNSType:AsIs# AsIs, UseIP, UseIPv4, UseIPv6, DNS strategyDisableUploadTraffic:false# Disable Upload Traffic to the panelDisableGetRule:false# Disable Get Rule from the panel EnableProxyProtocol:false# Only works for WebSocket and TCPEnableFallback:false# Only support for Trojan and VlessFallBackConfigs:# Support multiple fallbacks -SNI:# TLS SNI(Server Name Indication), Empty for anyPath:# HTTP PATH, Empty for anyDest:80# Required, Destination of fallback, check https://xtls.github.io/config/fallback/ for details.ProxyProtocolVer:0# Send PROXY protocol version, 0 for dsableCertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain:"node1.test.com"# Domain to certCertFile:/etc/XrayR/cert/node1.test.com.cert# Provided if the CertMode is fileKeyFile:/etc/XrayR/cert/node1.test.com.keyProvider:alidns# DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email:test@me.comDNSEnv:# DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY:aaaALICLOUD_SECRET_KEY:bbb -PanelType:"V2board"# Panel type: SSpanel, V2board, PMpanelApiConfig:ApiHost:"http://V2board.com"ApiKey:"123"NodeID:42NodeType:Trojan# Node type: V2ray, Shadowsocks, TrojanTimeout:30# Timeout for the api requestEnableVless:false# Enable Vless for V2ray TypeEnableXTLS:false# Enable XTLS for V2ray and TrojanSpeedLimit:0# Local settings will replace remote settings, 0 means disableDeviceLimit:0# Local settings will replace remote settings, 0 means disableRuleListPath:# /etc/XrayR/rulelist Path to local rulelist fileControllerConfig:ListenIP:0.0.0.0# IP address you want to listenUpdatePeriodic:60# Time to update the nodeinfo, how many sec.EnableDNS:false# Enable custom DNS config, Please ensure that you set the dns.json wellCertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain:"node2.test.com"# Domain to certCertFile:/etc/XrayR/cert/node2.test.com.cert# Provided if the CertMode is fileKeyFile:/etc/XrayR/cert/node2.test.com.keyProvider:alidns# DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email:test@me.comDNSEnv:# DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY:aaaALICLOUD_SECRET_KEY:bbb
ApiConfig:ApiHost:"http://127.0.0.1:667"ApiKey:"123"NodeID:41NodeType:V2ray# Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-PluginTimeout:30# Timeout for the api request, Default is 5 secEnableVless:false# Enable Vless for V2ray TypeEnableXTLS:false# Enable XTLS for V2ray and TrojanSpeedLimit:0# Local settings will replace remote settings, 0 means disableDeviceLimit:0# Local settings will replace remote settings, 0 means disableRuleListPath:# /etc/XrayR/rulelist Path to local rulelist fileDisableCustomConfig:false# Disable custom config
参数
选项
说明
ApiHost
无
对接前端面板地址
ApiKey
无
前端对接通讯秘钥
NodeID
无
节点ID
NodeType
V2ray,Shadowsocks, Shadowsocks-Plugin,Trojan
节点类型
Timeout
无
设定单次访问API超时时间,默认5秒
EnableVless
true,false
是否给V2ray启用Vless协议
EnableXTLS
true,false
是否使用XTLS
SpeedLimit
float
单位Mbps, 本地限速设置,会覆盖远程设置,0为不启用
DeviceLimit
int
本地设备限制,会覆盖远程设置,0为不启用
RuleListPath
无
本地规则设置,指定本地规则文件路径,规则文件格式
DisableCustomConfig
true,false
是否启用custom_config,默认false
后端相关配置
ControllerConfig:ListenIP:0.0.0.0# IP address you want to listenSendIP:0.0.0.0# IP address you want to send pacakageUpdatePeriodic:60# Time to update the nodeinfo, how many sec.EnableDNS:false# Use custom DNS config, Please ensure that you set the dns.json wellDNSType:AsIs# AsIs, UseIP, UseIPv4, UseIPv6, DNS strategyDisableUploadTraffic:false# Disable Upload Traffic to the panelDisableGetRule:false# Disable Get Rule from the panelDisableIVCheck:false# Disable the anti-reply protection for ShadowsocksDisableSniffing:false# Disable domain sniffing EnableProxyProtocol:false# Only works for WebSocket and TCPEnableFallback:false# Only support for Trojan and VlessFallBackConfigs:# Support multiple fallbacks -SNI:# TLS SNI(Server Name Indication), Empty for anyPath:# HTTP PATH, Empty for anyDest:80# Required, Destination of fallback, check https://xtls.github.io/config/fallback/ for details.ProxyProtocolVer:0# Send PROXY protocol version, 0 for dsable
CertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain:"node2.test.com"# Domain to certCertFile:/etc/XrayR/cert/node2.test.com.cert# Provided if the CertMode is fileKeyFile:/etc/XrayR/cert/node2.test.com.keyProvider:alidns# DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email:test@me.comDNSEnv:# DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY:aaaALICLOUD_SECRET_KEY:bbb