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

Can I use Traefik without a domain name? #539

Closed
langston-barrett opened this issue Jul 18, 2016 · 2 comments
Closed

Can I use Traefik without a domain name? #539

langston-barrett opened this issue Jul 18, 2016 · 2 comments

Comments

@langston-barrett
Copy link

I am a developer of mantl. We use Traefik in our stack, but we don't have a bunch of domain names lying around for our devs to use for testing. Is it possible to use Traefik (especially with Marathon backend) without a domain name?

What I'd like is to be able to do something like

curl http://<marathon-service>.<my-edge-node-ip>

and have it work.

One workaround is to set your domain to example.com and do something like

echo '<my-edge-node-ip> example.com' >> /etc/hosts

but this feels like a hack. I'd rather not require users to modify their environment because they don't own a domain name.

@emilevauge
Copy link
Member

@siddharthist yes you can :)
For example, you can use labels defined http://docs.traefik.io/toml/#marathon-backend on an app to modify its route: traefik.frontend.rule=PathPrefixStrip:/test will route every requests made on /test to this app.
If you need that for all you applications, you can also provide a custom template, here is the default template used: https://github.com/containous/traefik/blob/master/templates/marathon.tmpl

@langston-barrett
Copy link
Author

@emilevauge Thanks for taking the time to fill me in! I'll probably make another issue when I can't figure it out 😜

@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