1
| sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
ELM
|
1 2 3 4
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' sudo apt-key add - curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' sudo tee -a /etc/apt/sources.list.d/caddy-stable.list sudo apt update sudo apt install caddy
AWK
|
证书位置
1
| cd /var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/
AWK
|
配置文件路径
修改配置后 重新加载配置
反向代理
1 2 3
| www.psvmc.cn { reverse_proxy localhost:9000 }
STYLUS
|
修改配置后 重新加载配置
1
| systemctl reload caddy
EBNF
|
Ubuntu
sudo systemctl restart caddy