diff --git a/salt/profile/matrix/files/upstreams.nginx b/salt/profile/matrix/files/upstreams.nginx index 65b3838..68efa26 100644 --- a/salt/profile/matrix/files/upstreams.nginx +++ b/salt/profile/matrix/files/upstreams.nginx @@ -4,7 +4,9 @@ {% for type in types %} upstream {{ app }}_{{ loop.index }} { + {%- if type.get('upstream_balancing') %} {{ type.get('upstream_balancing') }} + {% endif -%} {%- for worker, port in type.get('workers').items() %} server 127.0.0.1:{{ port }}; # {{ worker }} {%- endfor %}