mirror of https://github.com/certd/certd
				
				
				
			Merge remote-tracking branch 'origin/v2' into v2
						commit
						4404f99642
					
				|  | @ -54,4 +54,5 @@ jobs: | |||
|           push: true | ||||
|           context: ./packages/ui/ | ||||
|           tags: | | ||||
|             registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest | ||||
|             registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}} | ||||
|  |  | |||
|  | @ -2,8 +2,6 @@ name: sync-to-gitee | |||
| on: | ||||
|   push: | ||||
|     branches: ['v2'] | ||||
|   pull_request: | ||||
|     branches: ['v2'] | ||||
| #  schedule: | ||||
| #    - # 国际时间 19:17 执行,北京时间3:17  ↙↙↙ 改成你想要每天自动执行的时间 | ||||
| #    - cron: '17 19 * * *' | ||||
|  |  | |||
|  | @ -3,6 +3,12 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| ### Bug Fixes | ||||
| 
 | ||||
| * lege 无执行权限问题 ([338eb3b](https://github.com/certd/certd/commit/338eb3bdfeb461e9b3bc7eee97b97a59f5642ffe)) | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| ### Bug Fixes | ||||
|  |  | |||
							
								
								
									
										72
									
								
								README.md
								
								
								
								
							
							
						
						
									
										72
									
								
								README.md
								
								
								
								
							|  | @ -8,17 +8,14 @@ CertD 是一个免费全自动申请和自动部署更新SSL证书的工具。 | |||
| ## 一、特性 | ||||
| 本项目不仅支持证书申请过程自动化,还可以自动化部署更新证书,让你的证书永不过期。      | ||||
| 
 | ||||
| * 全自动申请证书(支持阿里云、腾讯云、华为云、Cloudflare注册的域名) | ||||
| * 全自动部署更新证书(目前支持服务器上传部署、部署到阿里云、腾讯云等) | ||||
| * 支持通配符域名 | ||||
| * 支持多个域名打到一个证书上 | ||||
| * 全自动申请证书(支持阿里云、腾讯云、华为云、Cloudflare等各种途径注册的域名) | ||||
| * 全自动部署更新证书(目前支持部署到主机、部署到阿里云、腾讯云等) | ||||
| * 支持通配符域名/泛域名,支持多个域名打到一个证书上 | ||||
| * 邮件通知 | ||||
| * 证书自动更新 | ||||
| * 私有化部署,安全 | ||||
| * 私有化部署,保障安全 | ||||
| * 免费、免费、免费([阿里云单个通配符域名证书最便宜也要1800/年](https://yundun.console.aliyun.com/?p=cas#/certExtend/buy/cn-hangzhou)) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ## 二、在线体验 | ||||
| 
 | ||||
| 官方Demo地址,自助注册后体验     | ||||
|  | @ -41,7 +38,9 @@ https://certd.handsfree.work/ | |||
| -------> [点我查看详细使用步骤演示](./step.md)   <--------       | ||||
| ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑      | ||||
| 
 | ||||
| ## 四、本地docker部署 | ||||
| ## 四、私有化部署 | ||||
| 
 | ||||
| 由于证书、授权信息等属于高度敏感数据,请务必私有化部署,保障数据安全 | ||||
| 
 | ||||
| ### 1. 安装docker、docker-compose | ||||
| 
 | ||||
|  | @ -51,14 +50,16 @@ https://certd.handsfree.work/ | |||
|    | ||||
| 
 | ||||
| 1.2 安装docker       | ||||
| 
 | ||||
| https://docs.docker.com/engine/install/    | ||||
| 选择对应的操作系统,按照官方文档执行命令即可    | ||||
| 
 | ||||
| 
 | ||||
| ### 2. 运行certd | ||||
| 
 | ||||
| [docker-compose.yaml 下载](https://gitee.com/certd/certd/raw/v2/docker/run/docker-compose.yaml) | ||||
| 
 | ||||
| 当前版本号:  | ||||
| 
 | ||||
| ```bash | ||||
| # 随便创建一个目录 | ||||
| mkdir certd | ||||
|  | @ -77,10 +78,18 @@ vi docker-compose.yaml # 【可选】 | |||
| docker compose up -d | ||||
| 
 | ||||
| ``` | ||||
| 当前版本号:  | ||||
| > 如果提示 没有compose命令,请安装docker-compose    | ||||
| > https://docs.docker.com/compose/install/linux/ | ||||
| 
 | ||||
| #### 镜像说明: | ||||
| * certd镜像地址: | ||||
|   * `registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest` | ||||
| 
 | ||||
| * 镜像构建通过`Actions`自动执行,过程公开透明,请放心使用 | ||||
|   * [点我查看镜像构建日志](https://github.com/certd/certd/actions/workflows/build-image.yml)  | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| 如果提示 没有compose命令,请安装docker-compose    | ||||
| https://docs.docker.com/compose/install/linux/ | ||||
| 
 | ||||
| ### 3. 访问 | ||||
| 
 | ||||
|  | @ -89,14 +98,22 @@ http://your_server_ip:7001 | |||
| 记得修改密码    | ||||
| 
 | ||||
| 
 | ||||
| ### 4. 升级 | ||||
| ## 五、 升级 | ||||
| 如果使用固定版本号 | ||||
| 1. 修改`docker-compose.yaml`中的镜像版本号 | ||||
| 2. 运行 `docker compose up -d` 即可 | ||||
| 
 | ||||
| * 修改`docker-compose.yaml`中的镜像版本号 | ||||
| * 重新运行 `docker compose up -d` 即可 | ||||
| * 数据存在`/data/certd`目录下,不用担心数据丢失 | ||||
| 如果使用`latest`版本 | ||||
| 1. 重新拉取镜像 `docker pull registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest`  | ||||
| 2. 重新启动容器 `docker compose restart` | ||||
| 
 | ||||
| > 数据默认存在`/data/certd`目录下,不用担心数据丢失    | ||||
| 
 | ||||
| 
 | ||||
| ## 五、一些说明 | ||||
| 更新日志: [CHANGELOG](./CHANGELOG.md) | ||||
| 
 | ||||
| 
 | ||||
| ## 六、一些说明 | ||||
| * 本项目ssl证书提供商为letencrypt | ||||
| * 申请过程遵循acme协议 | ||||
| * 需要验证域名所有权,一般有两种方式(目前本项目仅支持dns-01) | ||||
|  | @ -108,14 +125,15 @@ http://your_server_ip:7001 | |||
| * 免费证书过期时间90天,以后可能还会缩短,所以自动化部署必不可少 | ||||
| * 设置每天自动运行,当证书过期前20天,会自动重新申请证书并部署 | ||||
| 
 | ||||
| ## 六、不同平台的设置说明 | ||||
| 
 | ||||
| ## 七、不同平台的设置说明 | ||||
| 
 | ||||
| * [Cloudflare](./doc/cf/cf.md) | ||||
| * [腾讯云](./doc/tencent/tencent.md) | ||||
| * [windows主机](./doc/host/host.md) | ||||
| 
 | ||||
| 
 | ||||
| ## 七、问题处理 | ||||
| ## 八、问题处理 | ||||
| ### 7.1 忘记管理员密码    | ||||
| 解决方法如下: | ||||
| 1. 修改docker-compose.yaml文件,将环境变量`certd_system_resetAdminPassword`改为`true` | ||||
|  | @ -138,7 +156,7 @@ docker compose up -d | |||
| ``` | ||||
| 5. 使用`admin/123456`登录系统,请及时修改管理员密码 | ||||
| 
 | ||||
| ## 八、联系作者 | ||||
| ## 九、联系作者 | ||||
| 如有疑问,欢迎加入群聊(请备注certd) | ||||
| * QQ群:141236433 | ||||
| * 微信群:    | ||||
|  | @ -150,7 +168,7 @@ docker compose up -d | |||
| <img height="230" src="./doc/images/me.png"> | ||||
| </p> | ||||
| 
 | ||||
| ## 九、捐赠 | ||||
| ## 十、捐赠 | ||||
| 媳妇儿说:“一天到晚搞开源,也不管管老婆孩子!😡😡😡”         | ||||
| 拜托各位捐赠支持一下,让媳妇儿开心开心,我也能有更多时间进行开源项目,感谢🙏🙏🙏 | ||||
| <p align="center"> | ||||
|  | @ -158,16 +176,20 @@ docker compose up -d | |||
| </p> | ||||
| 
 | ||||
| 
 | ||||
| ## 十、贡献代码 | ||||
| ## 十一、贡献代码 | ||||
| 
 | ||||
| [贡献插件教程](./plugin.md) | ||||
| 
 | ||||
| 
 | ||||
| ## 十一、我的其他项目(求Star) | ||||
| ## 十二、我的其他项目(求Star) | ||||
| * [袖手GPT](https://ai.handsfree.work/) ChatGPT,国内可用,无需FQ,每日免费额度 | ||||
| * [fast-crud](https://gitee.com/fast-crud/fast-crud/) 基于vue3的crud快速开发框架 | ||||
| * [dev-sidecar](https://github.com/docmirror/dev-sidecar/) 直连访问github工具,无需FQ,解决github无法访问的问题 | ||||
| 
 | ||||
| 
 | ||||
| ## 十二、版本更新日志 | ||||
| https://github.com/certd/certd/blob/v2/CHANGELOG.md | ||||
| 
 | ||||
| ## 十三、更新日志 | ||||
| 
 | ||||
| 更新日志:[CHANGELOG](./CHANGELOG.md) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| 4 | ||||
| 7 | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 109 KiB | 
|  | @ -9,5 +9,5 @@ | |||
|     } | ||||
|   }, | ||||
|   "npmClient": "pnpm", | ||||
|   "version": "1.22.2" | ||||
|   "version": "1.22.3" | ||||
| } | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ | |||
|   "scripts": { | ||||
|     "start": "lerna bootstrap --hoist", | ||||
|     "i-all": "lerna link && lerna exec npm install  ", | ||||
|     "publish": "npm run prepublishOnly1  && lerna publish --conventional-commits --create-release github && npm run afterpublishOnly && npm run deploy1", | ||||
|     "publish": "npm run prepublishOnly1  && lerna publish --conventional-commits --create-release github && npm run afterpublishOnly", | ||||
|     "afterpublishOnly": "", | ||||
|     "prepublishOnly1": "npm run check && npm run before-build && lerna run build ", | ||||
|     "before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"", | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/publishlab/node-acme-client/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/acme-client | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/publishlab/node-acme-client/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/acme-client | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| 02:24 | ||||
| 22:32 | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
|     "description": "Simple and unopinionated ACME client", | ||||
|     "private": false, | ||||
|     "author": "nmorsman", | ||||
|     "version": "1.22.2", | ||||
|     "version": "1.22.3", | ||||
|     "main": "src/index.js", | ||||
|     "types": "types/index.d.ts", | ||||
|     "license": "MIT", | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/pipeline | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/pipeline | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { | ||||
|   "name": "@certd/pipeline", | ||||
|   "private": false, | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "type": "module", | ||||
|   "main": "./dist/index.js", | ||||
|   "types": "./dist/index.d.ts", | ||||
|  |  | |||
|  | @ -50,7 +50,7 @@ export function createAxiosService({ logger }: { logger: Logger }) { | |||
|       //   case 505: error.message = 'HTTP版本不受支持'; break
 | ||||
|       //   default: break
 | ||||
|       // }
 | ||||
|       logger.error(`请求出错:url:${error?.response?.config.url},method:${error.response.config.method},status:${error?.response?.status}`); | ||||
|       logger.error(`请求出错:url:${error?.response?.config.url},method:${error?.response?.config?.method},status:${error?.response?.status}`); | ||||
|       logger.info("返回数据:", JSON.stringify(error?.response?.data)); | ||||
|       delete error.config; | ||||
|       delete error.response; | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/lib-k8s | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/lib-k8s | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { | ||||
|   "name": "@certd/lib-k8s", | ||||
|   "private": false, | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "type": "module", | ||||
|   "main": "./dist/index.js", | ||||
|   "types": "./dist/index.d.ts", | ||||
|  | @ -17,7 +17,7 @@ | |||
|     "shelljs": "^0.8.5" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@certd/pipeline": "^1.22.2", | ||||
|     "@certd/pipeline": "^1.22.3", | ||||
|     "@rollup/plugin-commonjs": "^23.0.4", | ||||
|     "@rollup/plugin-json": "^6.0.0", | ||||
|     "@rollup/plugin-node-resolve": "^15.0.1", | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/midway-flyway-js | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/midway-flyway-js | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { | ||||
|   "name": "@certd/midway-flyway-js", | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "description": "midway with flyway, sql upgrade way ", | ||||
|   "private": false, | ||||
|   "type": "module", | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/plugin-cert | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/plugin-cert | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { | ||||
|   "name": "@certd/plugin-cert", | ||||
|   "private": false, | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "type": "module", | ||||
|   "main": "./dist/index.js", | ||||
|   "types": "./dist/index.d.ts", | ||||
|  | @ -13,8 +13,8 @@ | |||
|     "preview": "vite preview" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@certd/acme-client": "^1.22.2", | ||||
|     "@certd/pipeline": "^1.22.2", | ||||
|     "@certd/acme-client": "^1.22.3", | ||||
|     "@certd/pipeline": "^1.22.3", | ||||
|     "jszip": "^3.10.1", | ||||
|     "node-forge": "^0.10.0", | ||||
|     "psl": "^1.9.0" | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| FROM node:18-alpine as builder | ||||
| FROM node:18-alpine AS builder | ||||
| EXPOSE 7001 | ||||
| WORKDIR /workspace/ | ||||
| COPY . /workspace/ | ||||
|  | @ -9,10 +9,10 @@ RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker | |||
| 
 | ||||
| RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf | ||||
| 
 | ||||
| 
 | ||||
| FROM node:18-alpine | ||||
| WORKDIR /app/ | ||||
| COPY --from=builder /workspace/certd-server/ /app/ | ||||
| RUN chmod +x /app/tools/linux/* | ||||
| ENV TZ=Asia/Shanghai | ||||
| ENV NODE_ENV=production | ||||
| ENV MIDWAY_SERVER_ENV=production | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/ui-client | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| ### Bug Fixes | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { | ||||
|   "name": "@certd/ui-client", | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "private": true, | ||||
|   "scripts": { | ||||
|     "dev": "vite --open", | ||||
|  | @ -59,7 +59,7 @@ | |||
|     "vuedraggable": "^2.24.3" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@certd/pipeline": "^1.22.2", | ||||
|     "@certd/pipeline": "^1.22.3", | ||||
|     "@rollup/plugin-commonjs": "^25.0.7", | ||||
|     "@rollup/plugin-node-resolve": "^15.2.3", | ||||
|     "@types/chai": "^4.3.12", | ||||
|  |  | |||
|  | @ -3,6 +3,10 @@ | |||
| All notable changes to this project will be documented in this file. | ||||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||||
| 
 | ||||
| ## [1.22.3](https://github.com/certd/certd/compare/v1.22.2...v1.22.3) (2024-07-25) | ||||
| 
 | ||||
| **Note:** Version bump only for package @certd/ui-server | ||||
| 
 | ||||
| ## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23) | ||||
| 
 | ||||
| ### Bug Fixes | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { | ||||
|   "name": "@certd/ui-server", | ||||
|   "version": "1.22.2", | ||||
|   "version": "1.22.3", | ||||
|   "description": "fast-server base midway", | ||||
|   "private": true, | ||||
|   "type": "module", | ||||
|  | @ -21,12 +21,12 @@ | |||
|     "@alicloud/cs20151215": "^3.0.3", | ||||
|     "@alicloud/openapi-client": "^0.4.0", | ||||
|     "@alicloud/pop-core": "^1.7.10", | ||||
|     "@certd/acme-client": "^1.22.2", | ||||
|     "@certd/acme-client": "^1.22.3", | ||||
|     "@certd/lib-huawei": "^1.22.1", | ||||
|     "@certd/lib-k8s": "^1.22.2", | ||||
|     "@certd/midway-flyway-js": "^1.22.2", | ||||
|     "@certd/pipeline": "^1.22.2", | ||||
|     "@certd/plugin-cert": "^1.22.2", | ||||
|     "@certd/lib-k8s": "^1.22.3", | ||||
|     "@certd/midway-flyway-js": "^1.22.3", | ||||
|     "@certd/pipeline": "^1.22.3", | ||||
|     "@certd/plugin-cert": "^1.22.3", | ||||
|     "@koa/cors": "^3.4.3", | ||||
|     "@midwayjs/bootstrap": "^3.16.2", | ||||
|     "@midwayjs/cache": "^3.14.0", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 xiaojunnuo
						xiaojunnuo