1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

add reference to examples

This commit is contained in:
Umputun 2021-04-10 13:18:28 -05:00
parent 8135e99d4d
commit 7da8ee593e
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,8 @@ example with a static provider:
User can sets multiple providers at the same time.
_See examples of various providers in [examples](https://github.com/umputun/reproxy/tree/master/examples)_
### Static
This is the simplest provider defining all mapping rules directly in the command line (or environment). Multiple rules supported.

View File

@ -112,6 +112,7 @@ func TestService_Match(t *testing.T) {
dest string
ok bool
}{
{"example.com", "/api/svc3/xyz/something", "http://127.0.0.3:8080/blah3/xyz/something", true},
{"example.com", "/api/svc3/xyz", "http://127.0.0.3:8080/blah3/xyz", true},
{"abc.example.com", "/api/svc1/1234", "http://127.0.0.1:8080/blah1/1234", true},
{"zzz.example.com", "/aaa/api/svc1/1234", "/aaa/api/svc1/1234", false},