

Note: This is a community-maintained installation method. See our recommended Docker Compose configuration and usage instructions. View Caddy in the Arch Linux repositories and the Arch Linux Wiki Docker docker pull caddy Those modifications include a custom start/stop behavior and additional sandboxing flags which are explained in systemd's exec documentation, which may lead to certain host directories not being available to the Caddy process. This package comes with heavily modified versions of both of Caddy's systemd service unit files, but does not enable them by default. View the Caddy COPR Arch Linux, Manjaro, Parabola
#DOWNLOAD DEBIAN INSTALL#
RHEL/CentOS 7: yum install yum-plugin-copr yum copr enable yum install caddy

If you do, please read the service usage instructions.įedora or RHEL/CentOS 8: dnf install 'dnf-command(copr)' dnf copr enable dnf install caddy This package comes with both of Caddy's systemd service unit files, but does not enable them by default. 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.
#DOWNLOAD DEBIAN UPDATE#
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.Īfter installing, please read the service usage instructions. 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. by building from source (either with go or xcaddy).
#DOWNLOAD DEBIAN HOW TO#
