Add support to hide headers from upstream servers (#1928)
This commit is contained in:
parent
858f3398f8
commit
8975800740
4 changed files with 23 additions and 1 deletions
|
|
@ -290,6 +290,9 @@ http {
|
|||
proxy_pass_header Server;
|
||||
{{ end }}
|
||||
|
||||
{{ range $header := $cfg.HideHeaders }}proxy_hide_header {{ $header }};
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $cfg.HTTPSnippet) }}
|
||||
# Custom code snippet configured in the configuration configmap
|
||||
{{ $cfg.HTTPSnippet }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue