docker-compose配置Let‘s Encrypt证书

docker-compose配置Let's Encrypt证书

工具

https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion

git clone https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion

简述:启动服务之后会创建一个network,把服务加入到network中即可获得SSL加密

配置docker-compose.yml,加入到network中

根据字段的版本不同,每个都有不同的设置方案。
version1
只需加入

net: 【network名】

version3
需要在末尾声明网络名(引用网络),并且需要标注是外部网络还是内部网络
这里属于外部网络

networks:
  webproxy:
    external: true

tips

Let’s Encrypt 在 2017 年 4 月引入的一个新的频次限制
https://www.v2ex.com/t/408134
有时候手残也是一种过错,调试太多会遇到频次限制Error

/etc/nginx/certs/www.99kies.club /app
Creating/renewal www.99kies.club certificates... (www.99kies.club)
2020-04-14 13:12:21,493:INFO:simp_le:1450: Generating new certificate private key
ACME server returned an error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many certificates already issued for exact set of domains: www.99kies.club: see https://letsencrypt.org/docs/rate-limits/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章