无名 发表于 2022-4-15 02:32:45

V2配置教程

配置文件说明
配置文件格式
1. 1.主配置文件采用yaml格式,命名为xxx.yml。?2.默认XrayR会使用软件运行目录下的config.yml作为配置文件。
配置文件基本格式,Nodes下可以同时添加多个面板,多个节点配置信息,只需添加相同格式的Nodes item即可。

1、分为两部分1.面板对接配置2.证书申请相关配置,上个教程说到准备一个域名来申请证书,
Cloudflare注册一个账号,后面有用,不多废话开始

面板对接配置

ApiConfig:
    ApiHost: "你的前端域名"
    ApiKey: "前端的密钥"
    NodeID: 节点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

证书申请相关配置

CertConfig:
    CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
    CertDomain: "节点的域名" # 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: **** Hidden Message *****
    Email: 注册的邮箱
    DNSEnv: # DNS ENV option used by DNS provider
      ALICLOUD_ACCESS_KEY: 以是注册的邮箱
      ALICLOUD_SECRET_KEY: DNS密钥

配置完以上信息启动docker就对接完成了

教程有些粗操,有什么不懂的慢慢解答
http://cdn.u1.huluxia.com/g4/M02/A2/33/rBAAdmIm3TqATmpjAAJkKR_xncg460.pnghttp://cdn.u1.huluxia.com/g4/M02/A2/33/rBAAdmIm3TyAF3EFAAIH2TaqNow802.png
页: [1]
查看完整版本: V2配置教程