I’m slightly freaking out. I recently ran some updates on my Linux Mint server computer. Afterwards, my modules, like Porkbun, had been removed and kept giving a 400 error when trying to add-package. Without the porkbun dns module, caddy can’t pass the keys and nothing with reverse proxy from me. The porkbun git page mentions some upgrade to the DNS system a few days ago that they said was connected to this. Any ideas of what to do? Do I downgrade Caddy until they resolve? I’m not the most computer savvy so I appreciate the help.
I guess it depends on how you got caddy to begin with. If you used xcaddy, you have to update caddy the same way (recompile via
xcaddy
) otherwise you’ll get the default binary which has no misc modules by default, which kinda sounds like what’s happened but who knows for sure.If you’re feeling daring, you can try to compile
caddy
yourself withxcaddy
, it’s super easy.Save your
Caddyfile
’s (ultra important), and uninstallcaddy
. Installxcaddy
(apt install xcaddy [orgo install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
]). Then usexcaddy
to compilecaddy
with the modules you need;Caddy will build and be spit out in
/tmp/caddy
. Move it to/home/username/.local/bin
or something, and make sure that directory is in your path. Don’t forget tochmod +x caddy
.Run caddy like normal and see if this fixes your issue. If not, you’ll likely have to try and older version of caddy (uninstall and specifically install the previous version or if you can’t, use
xcaddy
withCADDY_VERSION
to build a specific version with your modules), or wait until they push a fix for whatever they broke.That’s what I did for Cloudflare and it works well.