ansible-collection-caddy/roles/caddy/templates/Caddyfile.j2

18 lines
295 B
Text
Raw Normal View History

{% if caddy_use_local_certs %}
{
2024-12-22 16:16:28 +01:00
local_certs
}
{% endif %}
{% for site in caddy_sites %}
{{ site.name }} {
{% if site.directives is defined %}
2024-12-22 16:16:28 +01:00
{{ site.directives | indent }}
{% endif %}
{% if site.proxy_to is defined %}
2024-12-22 16:16:28 +01:00
reverse_proxy {{ site.proxy_to }}
{% endif %}
}
{% endfor %}