From b5a1379a93cbd9b8c334ececf274e6eb1cd63039 Mon Sep 17 00:00:00 2001 From: pocketW <104479902+pocketW@users.noreply.github.com> Date: Thu, 8 Dec 2022 21:12:17 +1100 Subject: [PATCH] Update config.yml --- config/config.yml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/config/config.yml b/config/config.yml index cd20719..b7e4729 100644 --- a/config/config.yml +++ b/config/config.yml @@ -2,19 +2,19 @@ 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/base/dns/ for help +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 -RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/base/route/ for help -OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/base/outbound/ for help -ConnetionConfig: +OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help +ConnectionConfig: Handshake: 4 # Handshake time limit, Second ConnIdle: 30 # Connection idle time limit, Second UplinkOnly: 2 # Time limit when the connection downstream is closed, Second DownlinkOnly: 4 # Time limit when the connection is closed after the uplink is closed, Second - BufferSize: 64 # The internal cache size of each connection, kB + BufferSize: 64 # The internal cache size of each connection, kB Nodes: - - PanelType: "SSpanel" # Panel type: SSpanel, V2board, PMpanel, Proxypanel, V2RaySocks + PanelType: "SSpanel" # Panel type: SSpanel, V2board, NewV2board, PMpanel, Proxypanel, V2RaySocks ApiConfig: ApiHost: "http://127.0.0.1:667" ApiKey: "123" @@ -33,15 +33,28 @@ Nodes: EnableDNS: false # 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 + 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) + GlobalDeviceLimitConfig: + Enable: false # Enable the global device limit of a user + RedisAddr: 127.0.0.1:6379 # The redis server address + RedisPassword: YOUR PASSWORD # Redis password + RedisDB: 0 # Redis DB + Timeout: 5 # Timeout for redis request + Expiry: 60 # Expiry time (second) EnableFallback: false # Only support for Trojan and Vless 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/fallback/ for details. + 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: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config. + CertMode: dns # Option about how to get certificate: none, file, http, tls, 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 @@ -51,7 +64,7 @@ Nodes: ALICLOUD_ACCESS_KEY: aaa ALICLOUD_SECRET_KEY: bbb # - - # PanelType: "V2board" # Panel type: SSpanel, V2board + # PanelType: "NewV2board" # Panel type: SSpanel, V2board, NewV2board, PMpanel, Proxypanel, V2RaySocks # ApiConfig: # ApiHost: "http://127.0.0.1:668" # ApiKey: "123"