neil
neil
https://github.com/acmesh-official/acme.sh/wiki/deploy-to-docker-containers
如果对方容器没有提供 graceful 的 reload 方式, 就不能从外部强行去重启. 这不安全,会造成数据损坏.
如果非要支持强制重启, 不如稍微修改这个文件 https://github.com/acmesh-official/acme.sh/blob/master/deploy/docker.sh 让它以某种方式支持重启就好了. 可以走 sock, cli, 或者 curl. 不用这么复杂.
有两个解决方案: 1. 把证书文件都 `-v` 到主机上,同一个位置. 然后再主机上运行 acme.sh 申请证书. 然后 用 `--install-cert --reload-cmd "docker restart A && docker restart B"` 2. 或者修改 docker.sh, 让 `DEPLOY_DOCKER_CONTAINER_LABEL` 支持逗号分隔多个container 即可.
很多地方都是支持逗号分隔的. 所以基本工具都是有的. 找到跟着用就好了. 我不想在多增加任何文件了. 有些文件还要进一步删除.
please provide the logs with `--debug 2`
it doesn't need "Le_Deploy_ssh_user" (as well as all "Le_Deploy_ssh_*" variables) variable. try to remove them, but be careful to keep compatible with renewal.
Using just "DEPLOY_SSH_USER" and saving them in to the conf is enough.
please fix the CI checks: https://github.com/sunflowerit/acme.sh/actions/runs/2808294974