我在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;PathPrefixStrip:/whoami"
networks:
- traefik
ports:
- "80"
restart: always
networks:
traefik:
external:
name: traefik
可以通过内部域(内部网)和外部域访问应用程序。
现在,我从“加密”中获取了Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/, url: "
,因为Traefik尝试获取无法从外部访问的域的证书。
是否可以从Traefik的“让我们加密”支持中排除域?
答案 0 :(得分:0)
docker-compose标签traefik.enable=false
应该将其禁用:
labels:
- traefik.enable=false