config.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Log:
  2. Level: none # Log level: none, error, warning, info, debug
  3. AccessPath: # /etc/XrayR/access.Log
  4. ErrorPath: # /etc/XrayR/error.log
  5. DnsConfigPath: # /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/base/dns/ for help
  6. RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/base/route/ for help
  7. OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/base/outbound/ for help
  8. ConnetionConfig:
  9. Handshake: 4 # Handshake time limit, Second
  10. ConnIdle: 30 # Connection idle time limit, Second
  11. UplinkOnly: 2 # Time limit when the connection downstream is closed, Second
  12. DownlinkOnly: 4 # Time limit when the connection is closed after the uplink is closed, Second
  13. BufferSize: 64 # The internal cache size of each connection, kB
  14. Nodes:
  15. -
  16. PanelType: "SSpanel" # Panel type: SSpanel, V2board, PMpanel, , Proxypanel
  17. ApiConfig:
  18. ApiHost: "http://127.0.0.1:667"
  19. ApiKey: "123"
  20. NodeID: 41
  21. NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
  22. Timeout: 30 # Timeout for the api request
  23. EnableVless: false # Enable Vless for V2ray Type
  24. EnableXTLS: false # Enable XTLS for V2ray and Trojan
  25. SpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disable
  26. DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
  27. RuleListPath: # ./rulelist Path to local rulelist file
  28. ControllerConfig:
  29. ListenIP: 0.0.0.0 # IP address you want to listen
  30. SendIP: 0.0.0.0 # IP address you want to send pacakage
  31. UpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.
  32. EnableDNS: false # Use custom DNS config, Please ensure that you set the dns.json well
  33. DNSType: AsIs # AsIs, UseIP, UseIPv4, UseIPv6, DNS strategy
  34. EnableProxyProtocol: false # Only works for WebSocket and TCP
  35. EnableFallback: false # Only support for Trojan and Vless
  36. FallBackConfigs: # Support multiple fallbacks
  37. -
  38. SNI: # TLS SNI(Server Name Indication), Empty for any
  39. Path: # HTTP PATH, Empty for any
  40. Dest: 80 # Required, Destination of fallback, check https://xtls.github.io/config/fallback/ for details.
  41. ProxyProtocolVer: 0 # Send PROXY protocol version, 0 for dsable
  42. CertConfig:
  43. CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
  44. CertDomain: "node1.test.com" # Domain to cert
  45. CertFile: ./cert/node1.test.com.cert # Provided if the CertMode is file
  46. KeyFile: ./cert/node1.test.com.key
  47. Provider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
  48. Email: test@me.com
  49. DNSEnv: # DNS ENV option used by DNS provider
  50. ALICLOUD_ACCESS_KEY: aaa
  51. ALICLOUD_SECRET_KEY: bbb
  52. # -
  53. # PanelType: "V2board" # Panel type: SSpanel, V2board
  54. # ApiConfig:
  55. # ApiHost: "http://127.0.0.1:668"
  56. # ApiKey: "123"
  57. # NodeID: 4
  58. # NodeType: Shadowsocks # Node type: V2ray, Shadowsocks, Trojan
  59. # Timeout: 30 # Timeout for the api request
  60. # EnableVless: false # Enable Vless for V2ray Type
  61. # EnableXTLS: false # Enable XTLS for V2ray and Trojan
  62. # SpeedLimit: 0 # Mbps, Local settings will replace remote settings
  63. # DeviceLimit: 0 # Local settings will replace remote settings
  64. # ControllerConfig:
  65. # ListenIP: 0.0.0.0 # IP address you want to listen
  66. # UpdatePeriodic: 10 # Time to update the nodeinfo, how many sec.
  67. # EnableDNS: false # Use custom DNS config, Please ensure that you set the dns.json well
  68. # CertConfig:
  69. # CertMode: dns # Option about how to get certificate: none, file, http, dns
  70. # CertDomain: "node1.test.com" # Domain to cert
  71. # CertFile: ./cert/node1.test.com.cert # Provided if the CertMode is file
  72. # KeyFile: ./cert/node1.test.com.pem
  73. # Provider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
  74. # Email: test@me.com
  75. # DNSEnv: # DNS ENV option used by DNS provider
  76. # ALICLOUD_ACCESS_KEY: aaa
  77. # ALICLOUD_SECRET_KEY: bbb