{% for site in caddy_domains %}
{{ site.domain }} {
	reverse_proxy localhost:{{ site.proxy_port }}
}

{% endfor %}
{% for redirect in caddy_redirects | default([]) %}
{{ redirect.from }} {
	redir https://{{ redirect.to }}{{ redirect.to_path | default('{uri}') }} permanent
}

{% endfor %}
