systemctl enable --now XrayR #运行 并添加开机自启 systemctl status XrayR #查看状态
config示例:
1 2 3 4 5 6 7 8 9 10 11 12 13
PanelType:"V2board"# Panel type: SSpanel, V2board, PMpanel #面板类型 ApiConfig: ApiHost:"http://127.0.0.1:667"#机场域名 ApiKey:"123"#对接密钥 NodeID:41#节点ID NodeType:V2ray# Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-Plugin #协议类型 Timeout:30# Timeout for the api request, Default is 5 sec EnableVless:false# Enable Vless for V2ray Type EnableXTLS:false# Enable XTLS for V2ray and Trojan SpeedLimit:0# 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 DisableCustomConfig:false# Disable custom config
如果需要增加TLS 则修改
1 2 3 4 5 6 7 8 9 10 11
CertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config. RejectUnknownSni: false # Reject unknown SNI, default false CertDomain:"node2.test.com"# Domain to cert #节点域名 CertFile:/etc/XrayR/cert/node2.test.com.cert # Provided if the CertMode is file #域名证书 KeyFile:/etc/XrayR/cert/node2.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 #证书注册商密钥