mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
make clear multiple hosts support
This commit is contained in:
@@ -12,6 +12,7 @@ Distributed as a single binary or as a docker container.
|
||||
- Static, command line proxy rules provider
|
||||
- Dynamic, file-based proxy rules provider
|
||||
- Docker provider with an automatic discovery
|
||||
- Support of multiple (virtual) hosts
|
||||
- Optional traffic compression
|
||||
- User-defined limits and timeouts
|
||||
- Single binary distribution
|
||||
@@ -22,7 +23,7 @@ Distributed as a single binary or as a docker container.
|
||||
|
||||
[](https://github.com/umputun/reproxy/actions/workflows/ci.yml) [](https://coveralls.io/github/umputun/reproxy?branch=master) [](https://goreportcard.com/report/github.com/umputun/reproxy) [](https://hub.docker.com/repository/docker/umputun/reproxy)
|
||||
|
||||
Server can be set as FQDN, i.e. `s.example.com` or `*` (catch all). Requested url can be regex, for example `^/api/(.*)` and destination url may have regex matched groups in, i.e. `http://d.example.com:8080/$1`. For the example above `http://s.example.com/api/something?foo=bar` will be proxied to `http://d.example.com:8080/something?foo=bar`.
|
||||
Server (host) can be set as FQDN, i.e. `s.example.com` or `*` (catch all). Requested url can be regex, for example `^/api/(.*)` and destination url may have regex matched groups in, i.e. `http://d.example.com:8080/$1`. For the example above `http://s.example.com/api/something?foo=bar` will be proxied to `http://d.example.com:8080/something?foo=bar`.
|
||||
|
||||
For convenience, requests with the trailing `/` and without regex groups expanded to `/(.*)`, and destinations in those cases expanded to `/$1`. I.e. `/api/` -> `http://127.0.0.1/service` will be translated to `^/api/(.*)` -> `http://127.0.0.1/service/$1`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user