🥕
XrayR Doc
  • 关于XrayR
  • XrayR下载和安装
    • 下载和安装
      • 使用一键脚本安装
      • 使用docker安装
      • 手动安装
  • XrayR配置文件说明
    • 配置文件说明
  • 对接SSpanel
    • 基本对接配置
      • 对接新版SSPanel Custom Config
      • 对接V2ray
      • 对接Trojan
      • 对接Shadowsocks
      • 对接Shadowsocks - V2Ray-Plugin
  • 对接V2board
    • 基本对接配置
  • 对接PMPanel
    • 基本对接配置
  • 对接ProxyPanel
    • 基本对接配置
  • 功能说明
    • 限速功能说明
    • 设备连接限制功能说明
    • 自定义DNS说明
    • 自定义路由功能说明
    • 自定义入口功能说明
    • 自定义出口功能说明
    • 审计功能说明
    • 自动申请证书说明
    • Fallback 功能说明
  • 杂项
    • 内存优化相关
    • 为什么要引入Shadowsocks - V2Ray-Plugin
    • Nginx+Trojan暂时滴神!
由 GitBook 提供支持
在本页
  1. 功能说明

自动申请证书说明

上一页审计功能说明下一页Fallback 功能说明

最后更新于2年前

XrayR 支持多种自动申请证书配置。申请到的证书将会放在配置文件(config.yml)目录的cert文件夹下。

以下是自动申请证书的相关配置文件说明。

CertConfig:
    CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
    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: test@me.com
    DNSEnv: # DNS ENV option used by DNS provider
        ALICLOUD_ACCESS_KEY: aaa
        ALICLOUD_SECRET_KEY: bbb
参数
选项
说明

CertMode

none,file,http,dns

获取证书的方式。file:手动提供,并制定路径。http:通过http申请,需要80端口。dns:使用dns模式申请,需要制定相关dns服务商配置。none:强制关闭tls设置,交由nginx或者caddy处理。

CertDomain

无

申请证书域名

CertFile

无

手动指定的证书路径

KeyFile

无

手动指定的私钥路径

Provider

无

dns提供商,所有支持的dns提供商请在此获取:

DNSEnv

无

采用DNS申请证书需要的环境变量,请参考上文链接内,自己的dns提供商所需要的参数,填写于此。请注意一行一个,填写时需符合yaml文件格式。

https://go-acme.github.io/lego/dns/