我在Docker环境中将Traefik用作反向代理。每个dockerized应用程序都将其Traefik配置作为标签,例如:
version: '2'
services:
whoami:
image: emilevauge/whoami:latest
labels:
- "traefik.backend=whoami"
- "traefik.frontend.rule=Host:internal.domain.com,external.domain.com;PathPrefixStrip:/whoami"
networks:
- traefik
ports:
- "80"
restart: always
networks:
traefik:
external:
name: traefik
可通过内部域(内部网)和外部域访问应用程序。
现在我从Let's Encrypt获取
Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/, url: "
,因为Traefik尝试获取无法从外部访问的域的证书。有什么方法可以从Traefik的“让我们加密”支持中排除域吗?
最佳答案
docker-compose标签traefik.enable=false
应该禁用它:
labels:
- traefik.enable=false
关于docker - 从Traefik中排除域名让我们加密,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54945671/