1
0
Fork 0

Update: support tcp-mode (in frontend/backend)

This commit is contained in:
till 2020-05-30 15:50:22 +02:00
parent 869fdead3d
commit f5b097616e
No known key found for this signature in database
GPG key ID: B119050E2EBA1DC5
3 changed files with 30 additions and 3 deletions

View file

@ -80,6 +80,7 @@ Important: easyhaproxy needs to be in the same network of the containers or othe
| Tag | Description |
|---------------------------------------------|---------------------------------------------------------------------------------------------------------|
| com.byjg.easyhaproxy.definitions | A Comma delimited list with the definitions. Each name requires the definition of the parameters below. |
| com.byjg.easyhaproxy.mode.[definition] | (Optional) Is this http or tcp mode in HAProxy. (Defaults to http) |
| com.byjg.easyhaproxy.port.[definition] | (Optional) What is the port that the HAProxy will listen to. (Defaults to 80) |
| com.byjg.easyhaproxy.localport.[definition] | (Optional) What is the port that the container is listening. (Defaults to 80) |
| com.byjg.easyhaproxy.host.[definition] | What is the host that the HAProxy will listen to. |
@ -126,6 +127,19 @@ docker run \
some/myimage
```
### TLS passthrough
Used to pass on SSL-termination to a backend:
```bash
docker run \
-l com.byjg.easyhaproxy.defintions=tcp-service \
-l com.byjg.easyhaproxy.mode.tcp-service=tcp \
-l com.byjg.easyhaproxy.port.tcp-service=443
.... \
some/tcp-service
```
### Redirect Example:
```bash