2024-07-25, 06:44 PM
I hope the OP, Matt, will see this post as I think he's the creator/maintainer of caddy-dynamicdns.
I've been using Caddy v2 for quite a while now, but was using a little Windows app to automatically update my IP when needed. Until I read this post properly and discovered Caddy itself can be used for Dynamic DNS. I've managed to install both plugins successfully (caddy-dynamicdns and the dynu plugin), though I did have to register dynu on the Caddy Downloads. Anyway this is where I'm getting a bit stuck with Caddyfile entries.
caddy-dynamicdns gives Minimal Example Config for the Caddyfile as:
The Dynu example config for the Caddyfile is like this:
So which do I use? I've knocked up my own Caddyfile and it looks like this, using both examples above:
I just need some clarity about what exactly goes in the Caddyfile. Thanks.
I've been using Caddy v2 for quite a while now, but was using a little Windows app to automatically update my IP when needed. Until I read this post properly and discovered Caddy itself can be used for Dynamic DNS. I've managed to install both plugins successfully (caddy-dynamicdns and the dynu plugin), though I did have to register dynu on the Caddy Downloads. Anyway this is where I'm getting a bit stuck with Caddyfile entries.
caddy-dynamicdns gives Minimal Example Config for the Caddyfile as:
Code:
{
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
example.com
}
}
}
The Dynu example config for the Caddyfile is like this:
Code:
tls {
dns dynu {env.DYNU_API_TOKEN} {
own_domain {env.OWN_DYNU_DOMAIN}
}
}
So which do I use? I've knocked up my own Caddyfile and it looks like this, using both examples above:
Code:
{
dynamic_dns {
provider dynu apiapiapiapi
domains {
mydomain.exmaple.com
}
}
}
mydomain.exmaple.com {
reverse_proxy 192.168.x.xx:8080
}
tls {
dns dynu apiapiapiapi {
own_domain mydomain.exmaple.com
}
}
I just need some clarity about what exactly goes in the Caddyfile. Thanks.
Jellyfin1 - 10.10.1 (Docker) Synology NAS (transcoding off)
Jellyfin2 - 10.10.1 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
Storage - x3 Synology NAS (22TB)
Reverse Proxy - Caddy v2 running on a Pi3b+
Jellyfin2 - 10.10.1 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
Storage - x3 Synology NAS (22TB)
Reverse Proxy - Caddy v2 running on a Pi3b+