Allow exposing traefik generated config through API call (middleware-manager discussion #26)

:speech_balloon: GitHub discussion middleware-manager #26 in Feature Request, started by dguihal on GitHub

Currently middleware manager generates a file in a directory which is has to be shared with traefik file/directory provider

This leads to some drawbacks

  • It requires setting some file/directory provider which has some limitation on traefik (only one file provider can be defined, also there is some watch issues with docker context)
  • It doesn’t work at all in a kubernetes context (or would require middleware manager to be in same pod than traefik)

Pangolin provides a more flexible way to share it’s generated config to traefik with an API endpoind which gives way more flexibility than raw file

Would it be possible to also provide the generated config through an API path (as pangolin does) ? It can simply be serving the generated file through an http server.

I know I could also set an basic http server on top of generated file to provide same, but I think that it would be a poor man workaround

Regards,


:speech_balloon: Join in here or on GitHub.

hhftechnology commented on GitHub:

Its doable, let me think what will be the best approach in the current code.