nginx module: fix applying recommended proxy headers

Previously, if proxy_set_header would be used in an extraConfig of
a location, the headers defined in the http block by
recommendedProxySettings would be cleared. As this is not the intended
behaviour, these settings are now included from a separate file if
needed.
This commit is contained in:
Franz Pletz
2017-02-11 04:09:11 +01:00
committed by Robin Gloster
parent 0371f2b5cc
commit 530282eebe
2 changed files with 17 additions and 10 deletions

View File

@@ -14,7 +14,8 @@ with lib;
default = null;
example = "http://www.example.org/";
description = ''
Adds proxy_pass directive.
Adds proxy_pass directive and sets recommended proxy headers if
recommendedProxySettings is enabled.
'';
};