From 58df353eb7417e3295eb027071257f4848264494 Mon Sep 17 00:00:00 2001 From: Ivan Dudin Date: Sat, 28 Jan 2023 20:59:21 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49e3609d..0caf4d61 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ Examples: - with a static provider: `reproxy --static.enabled --static.rule="example.com/api/(.*),https://api.example.com/$1"` - with an automatic docker discovery: `reproxy --docker.enabled --docker.auto` - - as a docker container `docker up -p 80:8080 umputun/reproxy --docker.enabled --docker.auto` - - with automatic SSL `docker up -p 80:8080 -p 443:8443 umputun/reproxy --docker.enabled --docker.auto --ssl.type=auto --ssl.fqdn=example.com` + - as a docker container: `docker up -p 80:8080 umputun/reproxy --docker.enabled --docker.auto` + - with automatic SSL: `docker up -p 80:8080 -p 443:8443 umputun/reproxy --docker.enabled --docker.auto --ssl.type=auto --ssl.fqdn=example.com` ## Install From af4cb423afb525b65a12c8c0b3c518d7c7f90824 Mon Sep 17 00:00:00 2001 From: Ivan Dudin Date: Sat, 28 Jan 2023 21:15:36 +0300 Subject: [PATCH 2/2] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0caf4d61..3e6aec7f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ _See examples of various providers in [examples](https://github.com/umputun/repr This is the simplest provider defining all mapping rules directly in the command line (or environment). Multiple rules supported. Each rule is 3 or 4 comma-separated elements `server,sourceurl,destination[,ping-url]`. For example: - `*,^/api/(.*),https://api.example.com/$1` - proxy all request to any host/server with `/api` prefix to `https://api.example.com` -- `example.com,/foo/bar,https://api.example.com/zzz,https://api.example.com/ping` - proxy all requests to `example.com` and with `/foo/bar` url to `https://api.example.com/zzz` and it sses `https://api.example.com/ping` for the health check. +- `example.com,/foo/bar,https://api.example.com/zzz,https://api.example.com/ping` - proxy all requests to `example.com` and with `/foo/bar` url to `https://api.example.com/zzz` and it sees `https://api.example.com/ping` for the health check. The last (4th) element defines an optional ping url used for health reporting. I.e.`*,^/api/(.*),https://api.example.com/$1,https://api.example.com/ping`. See [Health check](#ping-and-health-checks) section for more details.