caddy 筆記

簡單的jekyll 操作筆記

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
软重启
sudo systemctl daemon-reload

开机自动运行
sudo systemctl enable caddy

启动服务器
sudo systemctl start caddy

服务器状态
systemctl status caddy
  • 设置文件的位置:/etc/caddy/Caddyfile
你的域名:80 {
    reverse_proxy IP:端口
}
Written on September 25, 2020