infrastructure/ansible/plays/services/caddy/Caddyfile

15 lines
224 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 %}
2023-11-26 22:35:43 +01:00
redir https://{{ rule.to }}{uri}
2022-11-11 15:38:57 +01:00
{% else %}
2023-11-26 22:35:43 +01:00
redir https://{{ rule.to }}
2022-11-11 15:38:57 +01:00
{% endif %}
}
{% endfor %}