Skip to content
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

File frontend > Marathon Backend #465

Closed
rogeriollacerda opened this issue Jun 17, 2016 · 5 comments
Closed

File frontend > Marathon Backend #465

rogeriollacerda opened this issue Jun 17, 2016 · 5 comments

Comments

@rogeriollacerda
Copy link

Hi,

We are using Traefik with mesos/marathon application backend. When we try to set a file type frontend using a marathon application backend, we receive an error because during traefik startup, the file frontend is loaded before traefik get marathon events. The log files print that the backend does not exist yet. There is some config about it? Tks

ps.: File frontend is necessary to set a specific host header value.

@emilevauge
Copy link
Member

@rogeriollacerda Could you use the label traefik.frontend.rule=Host:your.domain.com in your marathon app http://docs.traefik.io/toml/#marathon-backend instead ?

@rogeriollacerda
Copy link
Author

@emilevauge thanks again.

Those parameters, I must use in Traefik container? Will It set same frontend rule for all of marathon application?

@emilevauge
Copy link
Member

emilevauge commented Jun 17, 2016

Here is an example json marathon file using labels: https://github.com/containous/traefik/blob/master/examples/whoami.json

The idea is to set one rule by application.

These labels override the default behavior which generates a sub-domain using the rule: Host:{applicationName}.{domain}.

@rogeriollacerda
Copy link
Author

@emilevauge tks

Just one more question about:

Can I set more than one host on the same rule?

@emilevauge
Copy link
Member

Yep: http://docs.traefik.io/basics/#frontends

Host:test.traefik.io,www.traefik.io

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants