Merge pull request #4246 from ElvinEfendi/proxy-alternative-upstream-name
introduce proxy_alternative_upstream_name Nginx var
This commit is contained in:
commit
7c297e001a
3 changed files with 7 additions and 3 deletions
|
|
@ -1084,6 +1084,8 @@ stream {
|
|||
set $proxy_upstream_name "{{ buildUpstreamName $location }}";
|
||||
set $proxy_host $proxy_upstream_name;
|
||||
|
||||
set $proxy_alternative_upstream_name "";
|
||||
|
||||
{{ if (or $location.ModSecurity.Enable $all.Cfg.EnableModsecurity) }}
|
||||
{{ if not $all.Cfg.EnableModsecurity }}
|
||||
modsecurity on;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue