1. The problem I’m having:
Hello
I have a question regarding caddy-dynamicdns
configuration scheme.
I am asking this because I want to integrate this functionality into the OPNsense plugin that I’m maintaining. I use jinja2 template logic for generating the Caddyfile.
If Option3
would work, it would keep my added template logic very lean. The other options require more effort. That’s why I want to make sure beforehand that I follow the proper supported configuration scheme.
Thank you~
2. Error messages and/or full log output:
I don't have any errors.
3. Caddy version:
4. How I installed and ran Caddy:
a. System environment:
b. Command:
c. Service/unit/compose file:
For 3. and 4. its the same configuration as in this thread.
d. My complete Caddy config:
As an example, there are 3 domains:
example.com
sub.example.com
sub2.example.com
- Option
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
example.com @ sub sub2
}
}
}
- Option
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
example.com @
example.com sub
example.com sub2
}
}
}
- Option
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
example.com
sub.example.com
sub2.example.com
}
}
}