服务安装-Caddy

安装基础环境

apt update
apt install curl
apt install gpg

设置安装源

apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list

更新安装源

apt update

安装caddy

apt install caddy

证书路径
/var/lib/caddy/.local/share/caddy/certificates/local/

发表回复

电子邮件地址不会被公开。必填项已用 * 标注