Add setting to allow returning the Server header from the backend
This commit is contained in:
parent
f00823fd83
commit
2f20c6bfcb
2 changed files with 11 additions and 0 deletions
|
|
@ -216,6 +216,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" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue