Closed ghillahill closed 8 months ago
You can configure traefik with "args". See "Traefik command arguments" header on https://kamal-deploy.org/docs/configuration
The quoted traefik.yml seems to be using incorrect structure - but I might be wrong. https://doc.traefik.io/traefik/providers/http/
I believe that in your case it will be:
traefik:
args:
providers:
http:
endpoint: https://my-domain.com/traefik/config
pollInterval: 10s
Hello @K4sku thank you for the response. I managed to get it work.
Hello I'am struggling with kamal and traefik for the following problem.
I was able to setup the deoploy.yml file for a main domain and x SANS domains and generate certificates with letsencrypt correctly too.
But the problem that I am facing is that I need to add a dynamic traefik configuration using an http provider that every 10s check if there are new domains and add them to the traefik configuration for my rails app.
I have setup the routes, and the traefik controller as follow:
TraefikController
Routes snippet for traefik config
# Traefik get '/traefik/config', to: 'traefik#config'
traefik.yml that read the HTTP provider
But I don't know how to proceed. It is possible to edit the deploy.yml to load the traefik configuration?