Merge pull request #787 from aledbf/pass-server-header

Add setting to allow returning the Server header from the backend
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-28 19:16:58 -04:00 committed by GitHub
commit 32f24380ec
2 changed files with 11 additions and 0 deletions

View file

@ -219,6 +219,10 @@ http {
proxy_ssl_session_reuse on;
{{ if $cfg.AllowBackendServerHeader }}
proxy_pass_header Server;
{{ end }}
{{range $name, $upstream := $backends}}
upstream {{$upstream.Name}} {
{{ if eq $upstream.SessionAffinity.AffinityType "cookie" }}