From 2b26eb83dba6f78e069b3d4397cde1b8872907e3 Mon Sep 17 00:00:00 2001 From: Jacob Michalskie Date: Dec 20 2022 09:16:26 +0000 Subject: Check for upstream_balancing --- 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 %}