#jinja2:lstrip_blocks: True {% set stream = {}|combine(nginx_streams_defaults, item.value, recursive=True) %} {% set stream_name = item.key %} server { {% for i in stream.listen.custom %} listen {{ i }}; {% endfor %} proxy_pass {{ stream.proxy_pass }}; proxy_protocol {{ stream.proxy_protocol }}; proxy_connect_timeout {{ stream.proxy_connect_timeout }}; proxy_next_upstream_tries {{ stream.proxy_next_upstream_tries }}; {% for c in stream.custom|default([]) %} {{ c }}; {% endfor %} {% for include in stream.includes %} include {{ include }}; {% endfor %} }