Skip to content

Commit

Permalink
Fix set-header warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmoraisjr committed Oct 29, 2017
1 parent 2c90f64 commit 09b0f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/haproxy/template/haproxy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ frontend httpsfront-{{ $host }}
http-request auth {{ if ne $realm "" }}realm "{{ $realm }}" {{ end }}if{{ $location.HAMatchPath }} !{ http_auth({{ $listName }}) }
{{ end }}
{{ end }}
http-request set-header X-Forwarded-Proto https
{{ if ne $authSSLCert.CAFileName "" }}
http-request set-header X-SSL-Client-SHA1 %{+Q}[ssl_c_sha1,hex]
http-request set-header X-SSL-Client-DN %{+Q}[ssl_c_s_dn]
Expand All @@ -269,7 +270,6 @@ frontend httpsfront-{{ $host }}
{{ else if eq $cfg.Forwardfor "ifmissing" }}
option forwardfor if-none
{{ end }}
http-request set-header X-Forwarded-Proto https
{{ if ne $authSSLCert.CAFileName "" }}
{{ if eq $server.CertificateAuth.ErrorPage "" }}
use_backend error495 if { ssl_c_ca_err gt 0 } || { ssl_c_err gt 0 }
Expand Down

0 comments on commit 09b0f83

Please sign in to comment.