Skip to content

Commit

Permalink
Merge pull request #1572 from estaleiro/cacertificate-secfix
Browse files Browse the repository at this point in the history
Certificate Auth Bugfix
  • Loading branch information
aledbf authored Oct 24, 2017
2 parents 0dab51d + c9fbfa3 commit d965ee8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,11 @@ stream {

# Pass the extracted client certificate to the backend
{{ if not (empty $server.CertificateAuth.CAFileName) }}
proxy_set_header ssl-client-cert $ssl_client_escaped_cert;
proxy_set_header ssl-client-cert $ssl_client_raw_cert;
proxy_set_header ssl-client-verify $ssl_client_verify;
{{ else }}
proxy_set_header ssl-client-cert "";
proxy_set_header ssl-client-verify "";
{{ end }}

# Allow websocket connections
Expand Down

0 comments on commit d965ee8

Please sign in to comment.