24 lines
612 B
Django/Jinja
24 lines
612 B
Django/Jinja
# Caddy configuration file
|
|
# Generated by Ansible - DO NOT EDIT MANUALLY
|
|
|
|
# Global configuration
|
|
{
|
|
{% if caddy_tls_enabled and caddy_tls_email %}
|
|
# ACME configuration for Let's Encrypt
|
|
email {{ caddy_tls_email }}
|
|
acme_ca {{ caddy_acme_ca }}
|
|
{% endif %}
|
|
|
|
{% if caddy_dns_provider == "cloudflare" and cloudflare_api_token %}
|
|
# DNS challenge for wildcard certificates
|
|
acme_dns cloudflare {{ cloudflare_api_token }}
|
|
{% endif %}
|
|
|
|
{% if not caddy_auto_https %}
|
|
auto_https off
|
|
{% endif %}
|
|
}
|
|
|
|
# Import service configurations
|
|
import {{ caddy_sites_enabled_dir }}/*
|