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/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章