Add "https" request check type for ngx_http_upstream_check_module #1926
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the current tengine implementation, there is ssl_hello check type which can do only do ssl handshake check.
With "https" check type I added, we can do full-featured https request check just like the "http" type.
We can add
check_ssl_ciphers
,check_ssl_protocols
,check_ssl_server_name
,check_ssl_verify
,check_ssl_verify_depth
,check_ssl_trusted_certificate
,check_ssl_crl
config instruction in upstream block of nginx.conf, and for the config instruction "check", we can use type="https" to enable the https check type.The following is an config example:
PS:
check_http_send
&check_http_expect_alive
config instruction is reused from the "http" check type.