Docker 部署 CLIProxyAPI
项目地址
GitHub:https://github.com/router-for-me/CLIProxyAPI
文档:https://help.router-for.me/cn/
环境准备
确保服务器已安装:
Docker
Docker Compose
部署 CLIProxyAPI
创建目录
mkdir -p cli-proxy-api && cd cli-proxy-api下载配置文件
curl -o config.yaml https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/refs/heads/main/config.example.yaml修改 config.yaml 配置
1️⃣ 开启远程管理
remote-management:
allow-remote: true2️⃣ 设置登录密钥
remote-management:
secret-key: "123456"3️⃣ 设置 API 密钥
api-keys:
- "your-api-key-1"其他配置可根据文档自行修改
创建 docker-compose.yml
services:
cli-proxy-api:
image: eceasy/cli-proxy-api:latest
container_name: cli-proxy-api
ports:
- "8317:8317"
volumes:
- ./config.yaml:/CLIProxyAPI/config.yaml
- ./auths:/root/.cli-proxy-api
- ./logs:/CLIProxyAPI/logs
restart: unless-stopped启动并访问
docker compose up -d访问 http://你的服务器IP:8317/management.html
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Zephyr's Blog
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果
