Adding Plugins to an existing Caddy install


(Matt Gerrish) #1

Apologies if this has been asked countless times, or is a bit obvious. But, I’ve not found a clear answer.

If I where to install Caddy using the following command:
curl https://getcaddy.com | bash -s dyndns

And then, at a later date I wished to add some plugins to the established install, would running:
curl https://getcaddy.com | bash -s dyndns,http.awses,http.awslambda

Keep my existing install intact and just add the requested plugins?

Thanks


(Matthew Fay) #2

Hi @Psybernoid,

On *nix systems, running this command will replace the Caddy binary on disk, but won’t do anything to the running process (it will keep serving your site(s) until you take it down) or to your Caddyfile / configuration.

Once the binary is replaced, it’s up to you to shut Caddy down and start it again with the new binary, or you can signal it with USR2 for Caddy to gracefully reload itself with the new binary (e.g. pkill -SIGUSR2 caddy).


(Matt Gerrish) #3

Ok, that makes perfect sense. Thanks