Skip to content

Commit

Permalink
Update TLS_naive_Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lxhao61 committed Jul 14, 2021
1 parent 6e9142d commit 95d881a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions v2ray(F+B+C+D+G+A)+naiveproxy/TLS_naive_Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
#原配置参数:
{
#.........<省略>........
admin off
admin off
#.........<省略>........
auto_https off #禁用自动https
auto_https off #禁用自动https
#.........<省略>........
}
#.........<省略>........

#以上参数修改如下:
{
#.........<省略>........
admin off
storage file_system {
root /home/tls #存放证书及密钥的基本路径 (增加此部分参数)
}
admin off
storage file_system {
root /home/tls #存放证书及密钥的基本路径 (增加此部分参数)
}
#.........<省略>........
auto_https off #禁用自动https
cert_issuer acme #必须acme与zerossl二选一(固定证书及密钥的绝对路径便于引用)。acme表示从Let's Encrypt申请证书及密钥,zerossl表示从ZeroSSL申请证书及密钥。注意:版本不小于v2.4.1才支持。
auto_https off #禁用自动https
cert_issuer acme #必须acme与zerossl二选一(固定证书及密钥的绝对路径便于引用)。acme表示从Let's Encrypt申请证书及密钥,zerossl表示从ZeroSSL申请证书及密钥。注意:版本不小于v2.4.1才支持。
#.........<省略>........
}
#.........<省略>........
Expand All @@ -35,18 +35,18 @@
#二、多个域名申请普通证书配置(在上更改完成的基础上修改)
#原配置参数:
#.........<省略>........
@host {
host xx.yy #限定域名访问(禁止以ip方式访问网站),更改为自己的域名。
}
@host {
host xx.yy #限定域名访问(禁止以ip方式访问网站),更改为自己的域名。
}
#.........<省略>........

:0, xx.yy:0 #xx.yy更改为自己的域名。注意:逗号与域名之间有一个空格。

#以上参数修改如下:
#.........<省略>........
@host {
host z1.xx.yy z2.xx.yy #限定域名访问(禁止以ip方式访问网站),更改为自己的域名。z1.xx.yy与z2.xx.yy表示两个不同域名(推荐采用根域名相同的两个二级域名即可)。
}
@host {
host z1.xx.yy z2.xx.yy #限定域名访问(禁止以ip方式访问网站),更改为自己的域名。z1.xx.yy与z2.xx.yy表示两个不同域名(推荐采用根域名相同的两个二级域名即可)。
}
#.........<省略>........

:0, z1.xx.yy:0, z2.xx.yy:0 #z1.xx.yy与z2.xx.yy更改为自己的域名。z1.xx.yy与z2.xx.yy表示两个不同域名(推荐采用根域名相同的两个二级域名即可)。
Expand Down

0 comments on commit 95d881a

Please sign in to comment.