forked from tech-fever/xrayr-docker-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
39 lines (39 loc) · 2.4 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Log:
Level: none # 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: 10 # 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
Nodes:
-
PanelType: "V2board" # Panel type: SSpanel, V2board
ApiConfig:
ApiHost: "USER_V2BOARD_DOMAIN"
ApiKey: "USER_V2BOARD_API_KEY"
NodeID: USER_NODE_ID
NodeType: USER_NODE_TYPE # Node type: V2ray, Shadowsocks, Trojan
Timeout: 30 # Timeout for the api request
EnableVless: false # Enable Vless for V2ray Type, Prefer remote configuration
EnableXTLS: false # Enable XTLS for V2ray and Trojan, Prefer remote configuration
ControllerConfig:
ListenIP: 0.0.0.0 # IP address you want to listen
UpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.
EnableDNS: false # Enable custom DNS config, Please ensure that you set the dns.json well
CertConfig:
CertMode: USER_CERT_MODE # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
CertDomain: "USER_NODE_DOMAIN" # Domain to cert
CertFile: /etc/XrayR/cert/USER_NODE_DOMAIN.cert # Provided if the CertMode is file
KeyFile: /etc/XrayR/cert/USER_NODE_DOMAIN.key
Provider: cloudflare # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
Email: USER_CLOUDFLARE_EMAIL
DNSEnv: # DNS ENV option used by DNS provider
CLOUDFLARE_API_KEY: USER_CLOUDFLARE_API_KEY
CLOUDFLARE_EMAIL: USER_CLOUDFLARE_EMAIL