Add proxy_ssl_* directives
Add support for backends which require client certificate (eg. NiFi) authentication. The `proxy-ssl-secret` k8s annotation references a secret which is used to authenticate to the backend server. All other directives fine tune the backend communication. The following annotations are supported: * proxy-ssl-secret * proxy-ssl-ciphers * proxy-ssl-protocol * proxy-ssl-verify * proxy-ssl-verify-depth
This commit is contained in:
parent
589c9a20f9
commit
def13fc06c
8 changed files with 476 additions and 0 deletions
|
|
@ -864,6 +864,17 @@ stream {
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $server.ProxySSL.CAFileName) }}
|
||||
# PEM sha: {{ $server.ProxySSL.PemSHA }}
|
||||
proxy_ssl_certificate {{ $server.ProxySSL.CAFileName }};
|
||||
proxy_ssl_certificate_key {{ $server.ProxySSL.CAFileName }};
|
||||
proxy_ssl_trusted_certificate {{ $server.ProxySSL.CAFileName }};
|
||||
proxy_ssl_ciphers {{ $server.ProxySSL.Ciphers }};
|
||||
proxy_ssl_protocols {{ $server.ProxySSL.Protocols }};
|
||||
proxy_ssl_verify {{ $server.ProxySSL.Verify }};
|
||||
proxy_ssl_verify_depth {{ $server.ProxySSL.VerifyDepth }};
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $server.SSLCiphers) }}
|
||||
ssl_ciphers {{ $server.SSLCiphers }};
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue