{
    auto_https off
}

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

{% endfor %}