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

@ -462,6 +462,11 @@ type Configuration struct {
// Default: false
// Reason for the default: https://trac.nginx.org/nginx/ticket/1300
ReusePort bool `json:"reuse-port"`
// HideHeaders sets additional header that will not be passed from the upstream
// server to the client response
// Default: empty
HideHeaders []string `json:"hide-headers"`
}
// NewDefault returns the default nginx configuration