dataset/seed/nginx-reverse-proxy/templates/reverse-proxy.yml

13 lines
503 B
YAML

address: {{ ip_eth0 }}
urls:
{% for domain in nginx.remotes }}
{% set suffix = domain|normalize_family %}
{% for revprox in nginx['reverse_proxy_for_' + suffix]['reverse_proxy_' + suffix]['revprox_domainnames_' + suffix] %}
{% for location in revprox['revprox_location_' + suffix] %}
{% if not revprox['revprox_is_websocket_' + suffix][loop.index - 1] %}
- {{ revprox }}{{ location }}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
ca_certificate: ../etc/pki/ca-trust/source/anchors/ca_External.crt