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

Great guide - but I'm stuck at configuring a specific router for /api pathprefix #8

Closed
Ogglord opened this issue Jan 20, 2020 · 1 comment

Comments

@Ogglord
Copy link

Ogglord commented Jan 20, 2020

I converted my Traefik from 1.7 to 2.1 yesterday, I have forward authentication (oauth) working for all my docker services. I cannot get two routers working for the same service.

I want the default router to catch all - and a second router to catch /api/.. requests - the first with forward auth, the second with basic auth to enable 3rd party app API connection.

I have posted my code here below:
https://stackoverflow.com/questions/59828909/traefik-2-0-forward-authentication-and-basic-auth-for-same-service-depending-o

@Ogglord
Copy link
Author

Ogglord commented Jan 20, 2020

This actually works - I must have tried the wrong service, it was a late night.

If you have a better solution please provide feedback!

@Ogglord Ogglord closed this as completed Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant