caddy-dns / cloudflare

Caddy module: dns.providers.cloudflare
Apache License 2.0
436 stars 59 forks source link

Can modules be installed to an existing caddy installation? #67

Closed umaar closed 10 months ago

umaar commented 10 months ago

I didn't use xcaddy or caddyserver.com/download - wondering if there's an alternative technique to install this module?

mholt commented 10 months ago

You can use the caddy add-package command! I'm mobile but look it up and you'll find it 👍

umaar commented 10 months ago

Thanks! Oh didn't realise a package and module are the same. I tried caddy add-package cloudflare and caddy add-package dns.providers.cloudflare but just realised the docs show the proper command: caddy add-package github.com/caddy-dns/cloudflare!

mholt commented 10 months ago

Glad you got it.

Packages and modules are actually different.

A Go module can have multiple Go packages in it.

A Go package can have one or multiple Caddy modules in it.

So add package adds a whole package of modules because we can't actually choose which modules in a package to install, they self register.

umaar commented 10 months ago

Thank you! Great project btw. Was thinking of making a little video showing how easy it has been to host multiple web apps on a cheap VPS with Caddy, and how much cheaper it is compared to other services that charge per app/container.

spielhoelle commented 3 weeks ago

For everybody who comes here:

caddy add-package github.com/caddy-dns/cloudflare

Thats it