Allows overriding the server name used to verify the certificate of the proxied HTTPS server

This commit is contained in:
schaefec 2019-10-04 08:19:31 +01:00 committed by Laszlo Janosi
parent 35264d6e8f
commit 141ea59b7f
4 changed files with 22 additions and 4 deletions

View file

@ -813,6 +813,9 @@ stream {
proxy_ssl_protocols {{ $server.ProxySSL.Protocols }};
proxy_ssl_verify {{ $server.ProxySSL.Verify }};
proxy_ssl_verify_depth {{ $server.ProxySSL.VerifyDepth }};
{{ if not (empty $server.ProxySSL.ProxySSLName) }}
proxy_ssl_name {{ $server.ProxySSL.ProxySSLName }};
{{ end }}
{{ end }}
{{ if not (empty $server.ProxySSL.PemFileName) }}