Add support to hide headers from upstream servers (#1928)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-01-18 16:37:22 -02:00 committed by GitHub
parent 858f3398f8
commit 8975800740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 1 deletions

View file

@ -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 }}