{
    auto_https off
}

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

{% endfor %}