

This package comes with both of Caddy's systemd service unit files, but does not enable them by default.įedora or RHEL/CentOS 8: dnf install 'dnf-command(copr)' dnf copr enable dnf install caddy If you wish to use the packaged support files (systemd services, bash completion and default configuration) with a custom Caddy build, instructions can be found here. Testing releases (includes betas and release candidates): sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf '' | sudo gpg -dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg curl -1sLf '' | sudo tee /etc/apt//caddy-testing.list sudo apt update sudo apt install caddy

Stable releases: sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf '' | sudo gpg -dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf '' | sudo tee /etc/apt//caddy-stable.list sudo apt update sudo apt install caddy It also comes with an optional caddy-api service which is not enabled by default, but should be used if you primarily configure Caddy via its API instead of config files. Installing this package automatically starts and runs Caddy as a systemd service named caddy. The caddy upgrade command can make this easy. You can upgrade static binaries by replacing them with newer versions and restarting Caddy. (Run echo $PATH to see the list of directories that qualify.) Place the binary in one of your $PATH (or %PATH% on Windows) directories so you can run caddy without typing the full path of the executable file. This is strongly recommended, especially for production servers.

If installing onto a production system, we recommend using our official package for your distro if available below. If you need third-party plugins, build from source with xcaddy or use our download page. Our official packages come only with the standard modules. This page describes various methods for installing Caddy on your system.
