Log:
Level: warning # Log level: none, error, warning, info, debug
AccessPath: # /etc/XrayR/access.Log
ErrorPath: # /etc/XrayR/error.log
DnsConfigPath: /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/dns.html for help
RouteConfigPath: /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, Second
ConnIdle: 30 # Connection idle time limit, Second
UplinkOnly: 1 # Time limit when the connection downstream is closed, Second
DownlinkOnly: 2 # Time limit when the connection is closed after the uplink is closed, Second
BufferSize: 64 # The internal cache size of each connection, kB
Nodes:
-
PanelType: "V2board" # Panel type: SSpanel, V2board, PMpanel, Proxypanel, V2RaySocks
ApiConfig:
ApiHost: "https://website"
ApiKey: "hashvalue"
NodeID: 1
NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
Timeout: 30 # Timeout for the api request
EnableVless: false # Enable Vless for V2ray Type
EnableXTLS: false # Enable XTLS for V2ray and Trojan
SpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disable
DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
RuleListPath: # /etc/XrayR/rulelist Path to local rulelist file
ControllerConfig:
ListenIP: 0.0.0.0 # IP address you want to listen
SendIP: 0.0.0.0 # IP address you want to send pacakage
UpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.
EnableDNS: true # Use custom DNS config, Please ensure that you set the dns.json well
DNSType: AsIs # AsIs, UseIP, UseIPv4, UseIPv6, DNS strategy
EnableProxyProtocol: false # Only works for WebSocket and TCP
EnableFallback: false # Only support for Trojan and Vless
AutoSpeedLimitConfig:
Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)
WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.
LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)
LimitDuration: 0 # How many minutes will the limiting last (unit: minute)
FallBackConfigs: # Support multiple fallbacks
-
SNI: # TLS SNI(Server Name Indication), Empty for any
Alpn: # Alpn, Empty for any
Path: # HTTP PATH, Empty for any
Dest: 80 # Required, Destination of fallback, check https://xtls.github.io/config/features/fallback.html for details.
ProxyProtocolVer: 0 # Send PROXY protocol version, 0 for dsable
CertConfig:
CertMode: none # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain: "node1.test.com" # Domain to cert
CertFile: /etc/XrayR/cert/node1.test.com.cert # Provided if the CertMode is file
KeyFile: /etc/XrayR/cert/node1.test.com.key
Provider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
Email: [email protected]
DNSEnv: # DNS ENV option used by DNS provider
ALICLOUD_ACCESS_KEY: aaa
ALICLOUD_SECRET_KEY: bbb
Nov 07 20:32:13 BuyVM systemd[1]: XrayR.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 07 20:32:13 BuyVM systemd[1]: XrayR.service: Failed with result 'exit-code'.
Nov 07 20:32:23 BuyVM systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 5.
Nov 07 20:32:23 BuyVM systemd[1]: Stopped XrayR Service.
Nov 07 20:32:23 BuyVM systemd[1]: Started XrayR Service.
Nov 07 20:32:23 BuyVM XrayR[164752]: XrayR 0.8.5 (A Xray backend that supports many panels)
Nov 07 20:32:23 BuyVM XrayR[164752]: 2022/11/07 20:32:23 Start the panel..
Nov 07 20:32:24 BuyVM XrayR[164752]: 2022/11/07 20:32:24 failed to create instance: app/router: this rule has no effective fields
Nov 07 20:32:24 BuyVM XrayR[164752]: panic: failed to create instance: app/router: this rule has no effective fields
Nov 07 20:32:24 BuyVM XrayR[164752]: goroutine 1 [running]:
Nov 07 20:32:24 BuyVM XrayR[164752]: log.Panicf({0x2e971df?, 0xc0008e7740?}, {0xc000497bf8?, 0x2417700?, 0xc000d9e048?})
Nov 07 20:32:24 BuyVM XrayR[164752]: log/log.go:395 +0x67
Nov 07 20:32:24 BuyVM XrayR[164752]: github.com/XrayR-project/XrayR/panel.(*Panel).loadCore(0xc0008d9e80?, 0xc000162af0)
Nov 07 20:32:24 BuyVM XrayR[164752]: github.com/XrayR-project/XrayR/panel/panel.go:146 +0x9e5
Nov 07 20:32:24 BuyVM XrayR[164752]: github.com/XrayR-project/XrayR/panel.(*Panel).Start(0xc0008ebdc0)
Nov 07 20:32:24 BuyVM XrayR[164752]: github.com/XrayR-project/XrayR/panel/panel.go:159 +0xe9
Nov 07 20:32:24 BuyVM XrayR[164752]: main.main()
Nov 07 20:32:24 BuyVM XrayR[164752]: github.com/XrayR-project/XrayR/main/main.go:96 +0x250