-
-
Notifications
You must be signed in to change notification settings - Fork 212
Description
I have been going through the documentation and have had success converting all my blocks to labels except one.
Trying the various combinations in the docs still doesn't get the output I'm looking for to match my static Caddyfile so either I am missing something or it's not working for this use case.
Before I moved to labels I had this global block in my Caddyfile:
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
{env.DOMAIN}
}
check_interval 5m
versions ipv4
}
}
This works fine.
Going through the docs and converting to labels I tried this:
caddy_2.dynamic_dns.1_provider: "cloudflare {env.CLOUDFLARE_API_TOKEN}"
caddy_2.dynamic_dns.2_domains: "{env.DOMAIN}"
caddy_2.dynamic_dns.check_interval: 5m
caddy_2.dynamic_dns.versions: ipv4
The output I get is:
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {env.DOMAIN}
check_interval 5m
versions ipv4
}
}
I cannot get the domains label to be it's own block like the Caddyfile. I have tried every example in the docs but can't seem to get it formatted the way I had it in the static Caddyfile.
Looking for any ideas. Thanks!