mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
Update README
This commit is contained in:
13
README.md
13
README.md
@@ -499,10 +499,15 @@ docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya
|
|||||||
|
|
||||||
1. Create a `config.yaml` from `config.example.yaml` and customize it.
|
1. Create a `config.yaml` from `config.example.yaml` and customize it.
|
||||||
|
|
||||||
2. Build and start the services using Docker Compose:
|
2. Build and start the services using the build scripts:
|
||||||
```bash
|
- For Windows (PowerShell):
|
||||||
docker compose up -d --build
|
```powershell
|
||||||
```
|
./docker-build.ps1
|
||||||
|
```
|
||||||
|
- For Linux/macOS:
|
||||||
|
```bash
|
||||||
|
bash docker-build.sh
|
||||||
|
```
|
||||||
|
|
||||||
3. To authenticate with providers, run the login command inside the container:
|
3. To authenticate with providers, run the login command inside the container:
|
||||||
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`
|
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`
|
||||||
|
|||||||
13
README_CN.md
13
README_CN.md
@@ -512,10 +512,15 @@ docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya
|
|||||||
|
|
||||||
1. 从 `config.example.yaml` 创建一个 `config.yaml` 文件并进行自定义。
|
1. 从 `config.example.yaml` 创建一个 `config.yaml` 文件并进行自定义。
|
||||||
|
|
||||||
2. 使用 Docker Compose 构建并启动服务:
|
2. 使用构建脚本构建并启动服务:
|
||||||
```bash
|
- Windows (PowerShell):
|
||||||
docker compose up -d --build
|
```powershell
|
||||||
```
|
./docker-build.ps1
|
||||||
|
```
|
||||||
|
- Linux/macOS:
|
||||||
|
```bash
|
||||||
|
bash docker-build.sh
|
||||||
|
```
|
||||||
|
|
||||||
3. 要在容器内运行登录命令进行身份验证:
|
3. 要在容器内运行登录命令进行身份验证:
|
||||||
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`
|
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`
|
||||||
|
|||||||
Reference in New Issue
Block a user