1
0
Fork 0

Update: more tests and ssl health-check

- restructure more tests for the "mode http"
 - add tests tests for "mode tcp"
 - add the ability to ssl health check on a backend (in mode tcp)
This commit is contained in:
till 2020-06-05 16:27:02 +02:00
parent 08de132450
commit 75deebc783
No known key found for this signature in database
GPG key ID: B119050E2EBA1DC5
5 changed files with 59 additions and 12 deletions

View file

@ -86,7 +86,7 @@ Important: easyhaproxy needs to be in the same network of the containers or othe
| com.byjg.easyhaproxy.host.[definition] | What is the host that the HAProxy will listen to. |
| com.byjg.easyhaproxy.redirect.[definition] | (Optional) Host redirects from connections in the port defined above. |
| com.byjg.easyhaproxy.sslcert.[definition] | (Optional) Cert PEM Base64 encoded. |
| com.byjg.easyhaproxy.health-check.[definition] | (Optional) `ssl`, enable health check via SSL in `mode tcp` (Defaults to "empty") |
Note: if you are deploying a stack set labels at the `deploy` level:
@ -135,11 +135,14 @@ Used to pass on SSL-termination to a backend:
docker run \
-l com.byjg.easyhaproxy.defintions=tcp-service \
-l com.byjg.easyhaproxy.mode.tcp-service=tcp \
-l com.byjg.easyhaproxy.health-check.tcp-service=ssl \
-l com.byjg.easyhaproxy.port.tcp-service=443
.... \
some/tcp-service
```
- enable health-check via SSL on the backend with the optional `health-check` label
### Redirect Example:
```bash