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:
parent
8135e99d4d
commit
7da8ee593e
@ -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.
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user