Add annotation to enable passing the certificate to the upstream server

This commit is contained in:
Manuel de Brito Fontes 2017-11-17 21:28:45 -03:00
parent de37e8ea89
commit 2223ea9600
3 changed files with 30 additions and 7 deletions

View file

@ -756,7 +756,11 @@ stream {
# Pass the extracted client certificate to the backend
{{ if not (empty $server.CertificateAuth.CAFileName) }}
{{ if $server.CertificateAuth.PassCertToUpstream }}
proxy_set_header ssl-client-cert $ssl_client_raw_cert;
{{ else }}
proxy_set_header ssl-client-cert "";
{{ end }}
proxy_set_header ssl-client-verify $ssl_client_verify;
proxy_set_header ssl-client-dn $ssl_client_s_dn;
{{ else }}