Skip to content

Commit 1b71a03

Browse files
committed
docs: 添加在线更新配置说明和命令
添加 update 配置节说明和 check-update/update 命令用法
1 parent 01a605e commit 1b71a03

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,26 @@ ssl:
8484
# 证书存储根目录
8585
# 留空则默认存储在程序目录下的 certs 文件夹
8686
path: "/etc/nginx/ssl"
87+
88+
# 在线更新配置(可选)
89+
update:
90+
# 镜像源类型,可选值:
91+
# - custom (自定义镜像地址)
92+
# - github (默认,直连 GitHub)
93+
# - ghproxy (使用 ghproxy 镜像加速,推荐国内用户使用)
94+
# - ghproxy2
95+
mirror: ""
96+
97+
# 自定义镜像地址(仅当 mirror=custom 时使用)
98+
# 示例: "https://your-mirror.com"
99+
customUrl: ""
100+
101+
# HTTP 代理地址(可选)
102+
# 支持 http、https、socks5 协议
103+
# 示例: "http://127.0.0.1:7890"
104+
# 示例: "socks5://127.0.0.1:1080"
105+
# 注意:也可以通过环境变量 HTTP_PROXY 和 HTTPS_PROXY 设置代理
106+
proxy: ""
87107
```
88108
89109
### 配置说明
@@ -121,6 +141,12 @@ ssl:
121141
122142
# 停止守护进程
123143
./cert-deploy stop
144+
145+
# 检查更新
146+
./cert-deploy check-update
147+
148+
# 手动触发更新检查
149+
./cert-deploy update
124150
```
125151

126152
### 运行方式

0 commit comments

Comments
 (0)