Add a fake Host in rule to prevent warnings in Traefik logs

This commit is contained in:
Daniel Berteaud 2023-09-15 16:24:06 +02:00
parent 6c8f608e04
commit 51e26249c5
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,8 @@ job [[ .acme.job_name | toJSON ]] {
tags = [
"[[ .traefik.instance ]].enable=true",
"[[ .traefik.instance ]].http.routers.[[ .acme.job_name ]][[ .env.suffix ]].rule=PathPrefix(`/.well-known/acme-challenge/`)",
# Note : add a fake host in the rule to prevent warnings in Traefik logs
"[[ .traefik.instance ]].http.routers.[[ .acme.job_name ]][[ .env.suffix ]].rule=Host(`fake-acme-host`) || PathPrefix(`/.well-known/acme-challenge/`)",
"[[ .traefik.instance ]].http.routers.[[ .acme.job_name ]][[ .env.suffix ]].priority=[[ .acme.traefik.priority ]]",
"[[ .traefik.instance ]].http.routers.[[ .acme.job_name ]][[ .env.suffix ]].entrypoints=[[ join (merge .acme.traefik .traefik).entrypoints "," ]]",
"[[ .traefik.instance ]].http.routers.[[ .acme.job_name ]][[ .env.suffix ]].middlewares=[[ template "common/traefik_middlewares.tpl" merge .acme.traefik .traefik ]]"

2
deps/common vendored

@ -1 +1 @@
Subproject commit 31af38020d602f57674da408a8e628dba0c7c1af
Subproject commit c19a85c4708d5ff7687624f5812a01c9a165e888