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

@ -60,8 +60,8 @@ backend srv_{{ host }}
http-request add-header X-Forwarded-Proto https if { ssl_fc }
{% elif mode == "tcp" %}
option tcp-check
tcp-check connect
tcp-check connect{{ " ssl" if o["health-check"] == "ssl" }}
{% endif %}
server srv {{ o["hosts"][k] }} check weight 1
server srv {{ o["hosts"][k] }} check weight 1{{ " verify none" if o["health-check"] == "ssl" }}
{% endfor %}
{% endfor %}