Fix indentation in generated Caddyfile

This commit is contained in:
Nis Wechselberg 2024-12-22 16:16:28 +01:00
parent 79a75602b7
commit dfd18a388a

View file

@ -1,16 +1,16 @@
{% if caddy_use_local_certs %} {% if caddy_use_local_certs %}
{ {
local_certs local_certs
} }
{% endif %} {% endif %}
{% for site in caddy_sites %} {% for site in caddy_sites %}
{{ site.name }} { {{ site.name }} {
{% if site.directives is defined %} {% if site.directives is defined %}
{{ site.directives }} {{ site.directives | indent }}
{% endif %} {% endif %}
{% if site.proxy_to is defined %} {% if site.proxy_to is defined %}
reverse_proxy {{ site.proxy_to }} reverse_proxy {{ site.proxy_to }}
{% endif %} {% endif %}
} }