We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e6837 commit f56855bCopy full SHA for f56855b
templates/http/default.conf.j2
@@ -3,7 +3,9 @@
3
{% if item.value.upstreams is defined and item.value.upstreams %}
4
{% for upstream in item.value.upstreams %}
5
upstream {{ item.value.upstreams[upstream].name }} {
6
+{% if item.value.upstreams[upstream].lb_method is defined and item.value.upstreams[upstream].lb_method | length %}
7
{{ item.value.upstreams[upstream].lb_method }};
8
+{% endif %}
9
{% if item.value.upstreams[upstream].zone_name is defined and item.value.upstreams[upstream].zone_name %}
10
zone {{ item.value.upstreams[upstream].zone_name }} {{ item.value.upstreams[upstream].zone_size }};
11
{% endif %}
0 commit comments