diff --git a/acme-to-vault.nomad.hcl b/acme-to-vault.nomad.hcl index f72e7fd..3a54688 100644 --- a/acme-to-vault.nomad.hcl +++ b/acme-to-vault.nomad.hcl @@ -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 ]]" diff --git a/deps/common b/deps/common index 31af380..c19a85c 160000 --- a/deps/common +++ b/deps/common @@ -1 +1 @@ -Subproject commit 31af38020d602f57674da408a8e628dba0c7c1af +Subproject commit c19a85c4708d5ff7687624f5812a01c9a165e888