Hi,
I’m wondering if something I’m going to implement is doable with Traefik plugins, or if I should just make a separate script.
So, what I need, is get list of current Traefik HTTP routers and HTTP services (like is possible via the API). Then I’ll process some logic about them, and then I need to make an external HTTP API call. This should be re-done every x minutes (like polling), or if it possible to “subscribe” to route/service changed/added/removed event, could listen to that. Is this outside the scope of what Traefik plugins can do? Or are they maybe quite limited/specific in functionality?
What would this actually be used for?
In my DNS (OPNsense Unbound) I need to add local DNS overrides for every reverse proxy entry I have, for example service1.mydomain.com → reverse proxy ip. I could automate this by creating some script that polls Traefik API, filter to include just my local reverse proxy entries, and then calls OPNsense API with relevant data (e.g. new reverse proxy entry created, create DNS override). Would just be nice if this could be implemented by a plugin. Might be something someone else would also be interested in using.
(Very side question not related to Traefik: it feels stupid that I have to add a DNS override for every reverse proxy entry I have, but I don’t see any other way. If someone knows a better/more convenient way, I’d love to hear it)