-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
match relays with a regular expression
during making decision where to send a request. From this moment, proxy configuration contains not just a realm/prefix string, but regular expression. For example: {routes, [{"^test-", {{127, 0, 0, 1}, 1812, <<"secret1">>}}, {"*_test$", {{127, 0, 0, 2}, 1813, <<"secret2">>}}]} Requests where realm will be started from `test-`, will be routed to the first 127.0.0.1:1812 relay. Requests where realm will be ends with `_test`, will be routed to the second 127.0.0.1:1813 relay.
- Loading branch information
Showing
3 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters