chore: docs

This commit is contained in:
xiaojunnuo
2025-11-19 13:24:40 +08:00
parent d4653678b2
commit 42e1f0478d
5 changed files with 13 additions and 4 deletions
+1 -2
View File
@@ -9,8 +9,7 @@ services:
restart: unless-stopped # 自动重启 restart: unless-stopped # 自动重启
volumes: volumes:
# ↓↓↓↓↓ -------------------------------------------------------- 数据库以及证书存储路径,默认存在宿主机的/data/certd/目录下,【您需要定时备份此目录,以保障数据容灾】 # ↓↓↓↓↓ -------------------------------------------------------- 数据库以及证书存储路径,默认存在宿主机的/data/certd/目录下,【您需要定时备份此目录,以保障数据容灾】
# 只要修改冒号前面的,冒号后面的/app/data不要动 - /data/certd:/app/data # 只要修改冒号前面的,冒号后面的/app/data切记切记不要动
- /data/certd:/app/data
#- /volume1/docker/certd:/app/data:delegated #群晖使用这个配置 #- /volume1/docker/certd:/app/data:delegated #群晖使用这个配置
# ↓↓↓↓↓ -------------------------------------------------------- 如果走时不准,考虑挂载localtime文件 # ↓↓↓↓↓ -------------------------------------------------------- 如果走时不准,考虑挂载localtime文件
#- /etc/localtime:/etc/localtime #- /etc/localtime:/etc/localtime
+4
View File
@@ -57,6 +57,10 @@ https://your_server_ip:7002
::: warning ::: warning
如果您是第一次升级certd版本,切记切记先备份一下数据 如果您是第一次升级certd版本,切记切记先备份一下数据
```
# docker-compose.yaml配置
- /data/certd:/app/data # 请务必确保 /app/data 这个路径没有改动,固定写死
```
::: :::
+6
View File
@@ -10,6 +10,12 @@
::: warning ::: warning
如果您是第一次升级certd版本,切记切记先备份一下数据 如果您是第一次升级certd版本,切记切记先备份一下数据
很多人docker不太会配置,数据目录没有映射出来,升级导致数据丢失
```
# docker-compose.yaml配置
- /data/certd:/app/data # 请务必确保 /app/data 这个路径没有改动,固定写死
```
具体备份方法可以参考上面每种部署方式升级方法后面的备份章节
::: :::
## 升级日志 ## 升级日志
@@ -156,7 +156,7 @@ export class AliyunDeployCertToALB extends AbstractTaskPlugin {
await this.deployDefaultCert(certId, client); await this.deployDefaultCert(certId, client);
} }
this.logger.info(`准备开始清理过期证书`); this.logger.info(`准备开始清理过期证书`);
await this.ctx.utils.sleep(20000) await this.ctx.utils.sleep(30000)
for (const listener of this.listeners) { for (const listener of this.listeners) {
try{ try{
await this.clearInvalidCert(albClientV2, listener); await this.clearInvalidCert(albClientV2, listener);
@@ -153,7 +153,7 @@ export class AliyunDeployCertToNLB extends AbstractTaskPlugin {
} }
this.logger.info(`准备开始清理过期证书`); this.logger.info(`准备开始清理过期证书`);
await this.ctx.utils.sleep(20000) await this.ctx.utils.sleep(30000)
for (const listener of this.listeners) { for (const listener of this.listeners) {
try{ try{
await this.clearInvalidCert(nlbClientV2, listener); await this.clearInvalidCert(nlbClientV2, listener);