博文
目前显示的是标签为“二次验证”的博文
未找到任何结果
The Hot3 in Last 7 Days
极简一键脚本 搭NaiveProxy梯子 自定义端口 与Caddy V2前置的VLESS/Vmess V2Ray共存 可开CDN
* 推荐使用 Xshell 的撰写窗格,这样多行命令可以写到撰写窗格里面执行。 1. 极简一键脚本搭 Caddy V2 前置的VLESS或Vmess+WebSocket+TLS 设置好域名解析, 如 vless.mydomain.com , CDN关掉 bash <(curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh) 搭完自己检查一下是否能正常使用 CDN可以开 2. 搭建NaiveProxy 2.1 设置域名解析, 如 np.mydomain.com , CDN关掉 -update- 所有以下这些步骤,我做成了一个一键脚本。执行这个脚本,以下步骤都不用手搓了。 bash <(curl -L https://github.com/crazypeace/naive/raw/main/install.sh) 2.2 用Caddy官方脚本安装Caddy 来源: https://caddyserver.com/docs/install#debian-ubuntu-raspbian 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 sudo apt update sudo apt install caddy 2.3 下载NaiveProxy作者编译的caddy https://github.com/klzgrad/forwardproxy/releases 找最新的版本 cd /tmp wget https://...
自建 CPA cliproxyapi 汇聚各路白嫖公益站 提供给Openclaw
这只是方便我自己, 记录一些关键信息. 不是为所有人准备的. 现在CPA的安装教程遍地都是了. 官方安装脚本 curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash source * 甲骨文Oracle VPS 非root用户也可以直接跑 注意看脚本输出的信息 执行1号命令, 进入你的安装目录 cd /home/ubuntu/cliproxyapi * 你如果是root用户, 这个目录会和我不一样, 以你自己的目录为准 执行2号命令, 看 cpa 后台程序能否跑起来, 有没有报错 ./cli-proxy-api 新开一个 SSH 会话, curl 测试一下 curl localhost:8317 * 注: 8317 是cpa默认的端口 应该得到这样的结果 {"endpoints":["POST /v1/chat/completions","POST /v1/completions","GET /v1/models"],"message":"CLI Proxy API Server"} 同时, 运行 cpa 的SSH会话有新的1行日志打印 到此为止, 说明 cpa 核心跑起来了. 先把cpa后台程序ctrl+c停掉 修改 ./config.yaml 配置文件 设置以下2项 allow-remote: true secret-key: "你的密码" souce * 注意 yaml 文件的行首空格缩进是有意义的, 不能乱改. * 注意你的密码要另外记住, 因为cpa运行一次之后, 会将明文密码hash, 再保存在配置文件. 你以后打开配置文件只会看到hash之后的乱码. 用3号命令, 把 cpa 后台 以服务service的形式跑起来 systemctl --user enable cliproxyapi.service systemctl --user start cliproxyapi.service 然后用你自己的浏览器访问...