diff --git a/jobs/ingress/traefik.hcl b/jobs/ingress/traefik.hcl index c8f34f7..3693f5c 100644 --- a/jobs/ingress/traefik.hcl +++ b/jobs/ingress/traefik.hcl @@ -143,6 +143,10 @@ job "traefik" { address = "127.0.0.1:8500" scheme = "http" +# Enable the file provider for dynamic configuration. +[providers.file] + filename = "/local/dynamic.toml" + #[providers.nomad] # [providers.nomad.endpoint] # address = "127.0.0.1:4646" @@ -160,6 +164,42 @@ job "traefik" { EOF destination = "/local/traefik.toml" } + template { + data = <