Corrects the location of proxy_set_header for client certificate
This commit is contained in:
parent
0518f47fb4
commit
ef7be11c6b
1 changed files with 5 additions and 2 deletions
|
@ -226,8 +226,6 @@ http {
|
||||||
ssl_client_certificate {{ $location.CertificateAuth.CAFileName }};
|
ssl_client_certificate {{ $location.CertificateAuth.CAFileName }};
|
||||||
ssl_verify_client on;
|
ssl_verify_client on;
|
||||||
ssl_verify_depth 10;
|
ssl_verify_depth 10;
|
||||||
proxy_set_header SSL_CLIENT_CERT $ssl_client_cert;
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not (empty $authPath) }}
|
{{ if not (empty $authPath) }}
|
||||||
|
@ -294,6 +292,11 @@ http {
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
|
# Pass the extracted client certificate to the backend
|
||||||
|
{{ if not (empty $location.CertificateAuth.CAFileName) }}
|
||||||
|
proxy_set_header ssl-client-cert $ssl_client_cert;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# Pass Real IP
|
# Pass Real IP
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue