本帖最后由 e2e 于 2024-9-20 11:33 编辑
服务器是dd了之后用的
1. alist安装(代码就不贴了)
2. 安装caddy(一行一行运行)
apt update apt upgrade -y apt install sudo apt install curl sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/gpg.key’ | sudo gpg –dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt’ | sudo tee /etc/apt/sources.list.d/caddy-stable.list apt update apt install caddy
3. 域名在cf,绑定ip,开启小云朵,证书格式:严格
4. 修改配置文件
vim /etc/caddy/caddyfile
内容全部删除,替换以下
xxx.com { encode gzip tls [email protected] reverse_proxy 127.0.0.1:5244 }
(xxx.com为我的域名)
然后保存并退出。
systemctl restart caddy
这个时候访问域名会出现服务器521。
啥问题啊mjj们,求解决 |