anjia0532 commented on a change in pull request #4297: URL: https://github.com/apache/apisix/pull/4297#discussion_r638377010
########## File path: docs/zh/latest/FAQ.md ########## @@ -486,3 +486,18 @@ apisix: 重启或 reload APISIX,所有 IP 便可以访问 `Admin API`。 **注意:您可以在非生产环境中使用此方法,以允许所有客户端从任何地方访问您的 `Apache APISIX` 实例,但是在生产环境中使用它并不安全。在生产环境中,请仅授权特定的 IP 地址或地址范围访问您的实例。** + +## 基于 acme.sh 自动更新 apisix ssl 证书 + +```bash +$ curl --output /root/.acme.sh/renew-hook-update-apisix.sh --silent https://gist.githubusercontent.com/anjia0532/9ebf8011322f43e3f5037bc2af3aeaa6/raw/65b359a4eed0ae990f9188c2afa22bacd8471652/renew-hook-update-apisix.sh + +$ chmod +x /root/.acme.sh/renew-hook-update-apisix.sh + +$ acme.sh --issue --staging -d demo.domain --renew-hook "~/.acme.sh/renew-hook-update-apisix.sh -h http://apisix-admin:port -p /root/.acme.sh/demo.domain/demo.domain.cer -k /root/.acme.sh/demo.domain/demo.domain.key -a xxxxxxxxxxxxx" + +$ acme.sh --renew --domain demo.domain + +``` + +详细步骤,可以参考我的博客 https://juejin.cn/post/6965778290619449351 Review comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
