Enabling per-location proxy-ssl parameters, so locations of the same server but with own unique Ingress definitions can have different SSL configs
This commit is contained in:
parent
a6815c36aa
commit
37fe9c9876
5 changed files with 29 additions and 18 deletions
|
|
@ -817,8 +817,6 @@ stream {
|
|||
|
||||
{{ if not (empty $server.ProxySSL.CAFileName) }}
|
||||
# PEM sha: {{ $server.ProxySSL.CASHA }}
|
||||
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 }};
|
||||
|
|
@ -826,6 +824,11 @@ stream {
|
|||
proxy_ssl_verify_depth {{ $server.ProxySSL.VerifyDepth }};
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $server.ProxySSL.PemFileName) }}
|
||||
proxy_ssl_certificate {{ $server.ProxySSL.CAFileName }};
|
||||
proxy_ssl_certificate_key {{ $server.ProxySSL.CAFileName }};
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $server.SSLCiphers) }}
|
||||
ssl_ciphers {{ $server.SSLCiphers }};
|
||||
{{ end }}
|
||||
|
|
@ -1286,6 +1289,19 @@ stream {
|
|||
# Location denied. Reason: {{ $location.Denied | quote }}
|
||||
return 503;
|
||||
{{ end }}
|
||||
{{ if not (empty $location.ProxySSL.CAFileName) }}
|
||||
# PEM sha: {{ $location.ProxySSL.CASHA }}
|
||||
proxy_ssl_trusted_certificate {{ $location.ProxySSL.CAFileName }};
|
||||
proxy_ssl_ciphers {{ $location.ProxySSL.Ciphers }};
|
||||
proxy_ssl_protocols {{ $location.ProxySSL.Protocols }};
|
||||
proxy_ssl_verify {{ $location.ProxySSL.Verify }};
|
||||
proxy_ssl_verify_depth {{ $location.ProxySSL.VerifyDepth }};
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $location.ProxySSL.PemFileName) }}
|
||||
proxy_ssl_certificate {{ $location.ProxySSL.CAFileName }};
|
||||
proxy_ssl_certificate_key {{ $location.ProxySSL.CAFileName }};
|
||||
{{ end }}
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue