infrastructure/coreos-config/plays/services/caddy/Caddyfile
Tobias Manske 5a8416fcdf
All checks were successful
continuous-integration/drone/push Build is passing
Refactor
2023-05-05 22:47:19 +02:00

15 lines
244 B
Caddyfile

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