
* add Webi installer, and Linux & Windows hints * fix copy pasta with setcap command * move generic linux below mainstream distros
3 KiB
title |
---|
Download Caddy |
Download Caddy
All our official distributions come with only the standard modules. If you need third-party plugins, build from source with xcaddy.
Static binaries
You can download Caddy from GitHub, where new releases are immediately published, and place it in your PATH.
Using curl
:
curl -OL "https://github.com/caddyserver/caddy/releases/latest/download/ASSET"
Using wget
:
wget "https://github.com/caddyserver/caddy/releases/latest/download/ASSET"
Replace ASSET
with the filename for your platform.
Docker
docker pull caddy
Debian, Ubuntu, Raspbian
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \
| sudo tee -a /etc/apt/sources.list.d/caddy-fury.list
sudo apt update
sudo apt install caddy
Installing this package automatically starts and runs Caddy for you.
Fedora, RedHat, CentOS
Fedora or RHEL/CentOS 8:
dnf install 'dnf-command(copr)'
dnf copr enable @caddy/caddy
dnf install caddy
RHEL/CentOS 7:
yum install yum-plugin-copr
yum copr enable @caddy/caddy
yum install caddy
Linux & Raspberry Pi
You can use Webi to automate the processes of downloading the latest release and putting it in your PATH, without requiring admin permissions.
curl -sS https://webinstall.dev/caddy | bash
If you'd like a simple way to launch Caddy as a system service and bind to privilege ports, see the Webi Caddy Cheat Sheet.
To allow non-root users to bind to ports 80 and 443, use setcap.
sudo setcap cap_net_bind_service=+ep $(readlink $(command -v caddy))
DigitalOcean
Deploy a Caddy droplet on DigitalOcean
macOS
Homebrew
brew install caddy
Webi
curl -sS https://webinstall.dev/caddy | bash
Windows 10
curl.exe -A MS https://webinstall.dev/caddy | powershell
You may need to adjust the Windows firewall rules to allow non-localhost incoming connections.