infrastructure/ansible/plays/services/caddy/Caddyfile
Tobias Manske 880c54d92c
All checks were successful
continuous-integration/drone/push Build is passing
Redirects shouldnt be permanent
2023-11-26 22:35:43 +01:00

15 lines
224 B
Caddyfile

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