Refactor: Dir structure
This commit is contained in:
14
ansible/plays/services/caddy/Caddyfile
Normal file
14
ansible/plays/services/caddy/Caddyfile
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
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 %}
|
Reference in New Issue
Block a user