infrastructure/coreos-config/plays/services/caddy/Caddyfile

15 lines
244 B
Caddyfile
Raw Normal View History

{
auto_https off
}
{% for rule in redirect.hosts %}
http://{{ rule.from }} {
2022-11-11 15:38:57 +01:00
{% if rule.keepUri %}
redir https://{{ rule.to }}{uri} permanent
2022-11-11 15:38:57 +01:00
{% else %}
redir https://{{ rule.to }} permanent
{% endif %}
}
{% endfor %}