{
    auto_https off
}

{% for rule in redirect.hosts %}
http://{{ rule.from }} {
    {% if rule.keepUri %}
    redir https://{{ rule.to }}{uri} permanent
    {% else %}
    redir https://{{ rule.to }} permanent
    {% endif %}
}

{% endfor %}