无名商城论坛

搜索
查看: 480|回复: 0

[其他技术] V2配置教程

[复制链接]

1万

主题

1万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
32464
发表于 2022-4-15 02:32:45 | 显示全部楼层 |阅读模式
配置文件说明
配置文件格式
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:
游客,如果您要查看本帖隐藏内容请回复

    Email: 注册的邮箱
    DNSEnv: # DNS ENV option used by DNS provider
        ALICLOUD_ACCESS_KEY: 以是注册的邮箱
        ALICLOUD_SECRET_KEY: DNS密钥

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

教程有些粗操,有什么不懂的慢慢解答
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表