-
Notifications
You must be signed in to change notification settings - Fork 616
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
glob matching improvements #452
Milestone
Comments
Hey Shay,
I think extending the current glob matcher with `**` logic would be a good idea and it should be backwards compatible.
Adding a regex matcher in addition to that would help, too.
Bonus points for adding a route option to select this per route instead of using a global flag.
PR is very welcome.
Frank
—
Frank Schröder
… On 26. Feb 2018, at 17:05, Shay Arbov ***@***.***> wrote:
Hey,
We've been using fabio for a while now, and we recently started using the glob matcher.
The problem we've encountered was that once we switched the matching strategy it affected all the endpoints matching, in addition to that the glob matcher does not match the '/' signs. these two issues forced us to add many new tags to existing services in order to try and cover all of the possibilities of each endpoint
e.g
urlprefix-/service/foo/*
urlprefix-/service/foo/*/*
urlprefix-/service/foo/*/*/* ...
This is clearly not the preferred solution, I would like to suggest three ways to go about this issue:
Add a per tag matching strategy (e.g urlglob-/service/foo/*).
Add support for double '*' wild card, which will match '/' signs.
Add a new matcher - a regex matcher.
If any of these ideas sounds reasonable to you, I would be happy to open a pull request for them.
Thanks,
Shay
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just stumbled upon this and installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
We've been using fabio for a while now, and we recently started using the glob matcher.
The problem we've encountered was that once we switched the matching strategy it affected all the endpoints matching, in addition to that the glob matcher does not match the '/' signs. these two issues forced us to add many new tags to existing services in order to try and cover all of the possibilities of each endpoint
e.g
This is clearly not the preferred solution, I would like to suggest three ways to go about this issue:
urlglob-/service/foo/*
).If any of these ideas sounds reasonable to you, I would be happy to open a pull request for them.
relates to #341
Thanks,
Shay
The text was updated successfully, but these errors were encountered: