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
|
|
@ -21,6 +21,7 @@ The following table shows a configuration option's name, type, and the default v
|
|||
|:---|:---|:------|
|
||||
|[add‑headers](#add-headers)|string|""|
|
||||
|[allow‑backend‑server‑header](#allow-backend-server-header)|bool|false|
|
||||
|[hide‑headers‑](#hide-headers)|string array|empty|
|
||||
|[access‑log‑path](#access-log-path)|string|"/var/log/nginx/access.log"|
|
||||
|[error‑log‑path](#error-log-path)|string|"/var/log/nginx/error.log"|
|
||||
|[enable‑dynamic‑tls‑records](#enable-dynamic-tls-records)|bool|true|
|
||||
|
|
@ -126,7 +127,12 @@ Sets custom headers from named configmap before sending traffic to the client. S
|
|||
|
||||
## allow-backend-server-header
|
||||
|
||||
AllowBackendServerHeader enables the return of the header Server from the backend instead of the generic nginx string. By default this is disabled.
|
||||
Enables the return of the header Server from the backend instead of the generic nginx string. By default this is disabled.
|
||||
|
||||
## hide-headers
|
||||
|
||||
Sets additional header that will not be passed from the upstream server to the client response.
|
||||
Default: empty
|
||||
|
||||
_References:_
|
||||
- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue