{ {% if caddy_use_api is sameas false %} "admin": { "disabled": true }, {% endif %} {% if caddy_use_debug is sameas true %} "logging": { "logs": { "default": { "level": "DEBUG" } } }, {% endif %} "apps": { "http": { "servers": { "{{ caddy_http_server_name }}": { "listen": [ ":80" ], "routes": [] {% if caddy_use_https is sameas false %}, "automatic_https": { "disable": true } {% endif %} }, "{{ caddy_https_server_name }}": { "listen": [ ":443" ], "routes": [] {% if caddy_use_https is sameas false %}, "automatic_https": { "disable": true } {% endif %} } } } {% if caddy_use_https is sameas true %}, "tls": { "automation": { "policies": [ { "subjects": [], "issuers": [ { {% if caddy_tls_use_staging is sameas true %} "ca": "https://acme-staging-v02.api.letsencrypt.org/directory", {% endif %} {%- if caddy_email is not undefined and not none %} "email": "{{ caddy_email }}", {% endif %} "module": "acme" }, { {%- if caddy_email is not undefined and not none %} "email": "{{ caddy_email }}", {% endif %} "module": "zerossl" } ] } ] } } {% endif %} } }