mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-06 18:25:49 +03:00
add reference to examples
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user