New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring frontend for backend from another provider #3695

bfncs opened this Issue Jul 30, 2018 · 7 comments


None yet
9 participants
Copy link

bfncs commented Jul 30, 2018

Do you want to request a feature or report a bug?


What did you expect to see?

I'd like to add a frontend for a backend from another provider. In my particular case I want to implement a blue-green deployment setting with multiple backends from the consul provider and configuring a frontend for one of these backends from the file provider. I can't announce the required frontend through consul itself because I need an instantaneous switch from one backend to another on config reload.

This is somewhat a simpler version of #1122, because there is no need to balance load between backends from different providers but just a direct relation from one frontend to one backend config.

Implementing this would be backwards incompatible if you have unintentional name collisions between backends of different providers (which is improbable). I would expect adding the provider name to the frontend's backend parameter explicitly (or some kind of more global config) would be needed to get around this.

Please let me know what you think about this proposal and how probable it is to get a PR implementing it added.


This comment has been minimized.

Copy link

dansteen commented Aug 2, 2018

I would like to see this as well. In my case we are providing servers via the consul_catalog provider, but would like to set dynamic Host rules via the consul provider. This would allow us to dynamically change the rules at will via a simple update of consul.



This comment has been minimized.

Copy link

rdgacarvalho commented Aug 2, 2018

I am working hard to try find way to do that as well!
In my case i am using docker swarm and I stopped use file and put all rules for frontend, backend, circuitbreaker and son inside my docker-compose file (crazy and longer) but now I can update the weights, tags, frontEndRules and etc.

I guess the way is use tags.


This comment has been minimized.

Copy link

dansteen commented Aug 2, 2018

Yeah, tags definitely make it easier. In our case we have an application that is started by nomad. We usually set tags that include the routing rules so that our applications respond to the correct urls, however, in this case the application allows the creation of subdomains dynamically inside the app. So we need to dynamically add in routing rules into the frontend to allow those subdomains to work.

Generally, we could have just used a regex to match all subdomains, however, we already have an application that does that. This application needs to match only a specific subset of domains - the rest need to fall through to that other application.

What I had wanted to do, was to create frontend definitions in consul (not catalog) and have those point to the backends referenced in the consul_catalog. Then we could have our software push updates to the consul path that stores the route rules for that frontend as domains are added and removed. This would be picked up by traefik and the routing rules would be in place.

This does, however, require the ability to point our frontend in the consul provider to the backends created in the consul_catalog provider.

For now, the subdomains are not added all that often, so we are just going to trigger a redeploy of the nomad app when one is added (which will semi-dynamically add in new routing rules), however, that's really all sorts of awful.


This comment has been minimized.

Copy link

marranz commented Oct 22, 2018

+1 In my case i'm trying to create the frontends using dynamodb pointing to a backend which is created through a kubernetes ingress rule.


This comment has been minimized.

Copy link

ambernardino commented Oct 26, 2018

Same problem on my side, trying to integrate frontends create via REST with backend created through Docker


This comment was marked as off-topic.

Copy link

oastashev commented Nov 27, 2018



This comment has been minimized.

Copy link

tanmng commented Dec 18, 2018

Any news on this feature requests gentlemen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment