infrastructure/compose/05_caddy/Caddyfile
Tobias Manske 59fa4a73f2
Reimplement redirect domains
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2022-06-20 14:36:34 +02:00

11 lines
145 B
Caddyfile

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