crossplane: Add directive 'proxy_pass_header'
Signed-off-by: Gabriel M. Dutra <me@dutralabs.xyz>
This commit is contained in:
parent
62522a3d49
commit
08ab545545
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ func (c *crossplaneTemplate) buildHTTP() {
|
||||||
httpBlock = append(httpBlock, buildDirective("error_log", cfg.ErrorLogPath, cfg.ErrorLogLevel))
|
httpBlock = append(httpBlock, buildDirective("error_log", cfg.ErrorLogPath, cfg.ErrorLogLevel))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg.AllowBackendServerHeader {
|
||||||
|
httpBlock = append(httpBlock, buildDirective("proxy_pass_header", "Server"))
|
||||||
|
}
|
||||||
|
|
||||||
c.config.Parsed = append(c.config.Parsed, &ngx_crossplane.Directive{
|
c.config.Parsed = append(c.config.Parsed, &ngx_crossplane.Directive{
|
||||||
Directive: "http",
|
Directive: "http",
|
||||||
Block: httpBlock,
|
Block: httpBlock,
|
||||||
|
|
Loading…
Reference in a new issue