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

docs need updating for new frontend rules format #423

Closed
kbroughton opened this issue May 31, 2016 · 2 comments
Closed

docs need updating for new frontend rules format #423

kbroughton opened this issue May 31, 2016 · 2 comments

Comments

@kbroughton
Copy link

kbroughton commented May 31, 2016

on
https://docs.traefik.io/toml/
existing

[frontends]
  [frontends.frontend1]
  backend = "backend2"
    [frontends.frontend1.routes.test_1]
    rule = "Host:test.localhost"

should be the above mentioning v < 1.0

Also, I get file not found when I put
filename = "rules.toml" and place the file in /etc/traefik or /etc/traefik/configs

It works fine if i use a fully qualified path to rules.toml
and for v >= 1.0

[frontends]
  [frontends.frontend1]
  backend = "backend2"
    [frontends.frontend1.routes.test_1]
    rule = "Host
    value = "test.localhost,otherfrontend.localhost"
@emilevauge
Copy link
Member

@kbroughton, to clarify:

[frontends]
  [frontends.frontend1]
  backend = "backend2"
    [frontends.frontend1.routes.test_1]
    rule = "Host
    value = "test.localhost,otherfrontend.localhost"

is the OLD deprecated way, and

[frontends]
  [frontends.frontend1]
  backend = "backend2"
    [frontends.frontend1.routes.test_1]
    rule = "Host:test.localhost"

is the NEW (less verbose) way to create frontend rules :)

Concerning filename = "rules.toml", it should be placed in the working dir, or you should use an absolute path.

@kbroughton
Copy link
Author

Ah, thanks.

I'm straddling two deployments one < 1.0.0 and one > 1.0.0 and got them
backwards.

On Tue, May 31, 2016 at 2:35 AM, Emile Vauge notifications@github.com
wrote:

@kbroughton https://github.com/kbroughton, to clarify:

[frontends]
[frontends.frontend1]
backend = "backend2"
[frontends.frontend1.routes.test_1]
rule = "Host
value = "test.localhost,otherfrontend.localhost"

is the OLD deprecated way, and

[frontends]
[frontends.frontend1]
backend = "backend2"
[frontends.frontend1.routes.test_1]
rule = "Host:test.localhost"

is the NEW (less verbose) way to create frontend rules :)

Concerning filename = "rules.toml", it should be placed in the working
dir, or you should use an absolute path.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#423 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AKErsg0seGUiSdnQjtE1NsaQf523K3jdks5qG-SkgaJpZM4IqI2k
.

kesten broughton
devops @ cognitivescale

@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