Skip to content

Commit

Permalink
change demo config for alt{HTTP,TLSALPN}Port
Browse files Browse the repository at this point in the history
users copy & paste w/o understanding what's it doing
  • Loading branch information
haruue committed Feb 11, 2024
1 parent 4c10543 commit cfd09c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/docs/advanced/Full-Server-Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ You can have either `tls` or `acme`, but not both.
ca: zerossl # (1)!
disableHTTP: false # (2)!
disableTLSALPN: false # (3)!
altHTTPPort: 8080 # (4)!
altTLSALPNPort: 4443 # (5)!
altHTTPPort: 80 # (4)!
altTLSALPNPort: 443 # (5)!
dir: my_acme_dir # (6)!
```
Expand Down
10 changes: 6 additions & 4 deletions docs/docs/advanced/Full-Server-Config.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,19 @@ listen: :443 # (1)!
ca: zerossl # (1)!
disableHTTP: false # (2)!
disableTLSALPN: false # (3)!
altHTTPPort: 8080 # (4)!
altTLSALPNPort: 4443 # (5)!
altHTTPPort: 80 # (4)!
altTLSALPNPort: 443 # (5)!
dir: my_acme_dir # (6)!
```

1. 要使用的 CA。可以是 `letsencrypt` 或 `zerossl`。
2. 禁用 HTTP 挑战。
3. 禁用 TLS-ALPN 挑战。
4. 备用的 HTTP 挑战端口。
5. 备用的 TLS-ALPN 挑战端口。
4. 用于 HTTP 挑战的监听端口。
(注意: 改为非 80 需要另行配置端口转发或者 HTTP 反向代理,否则证书会签署失败!)
5. 用于 TLS-ALPN 挑战的监听端口。
(注意: 改为非 443 需要另行配置端口转发或者 SNI Proxy,否则证书会签署失败!)
6. 存储 ACME 账户密钥和证书的目录。

## 混淆
Expand Down

0 comments on commit cfd09c4

Please sign in to comment.