diff --git a/README.md b/README.md index c853dc4..abac77e 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ services: - MT_PORT=8989 - MT_ENABLE_UI=true - MT_OFFLINE=false - # - API_TOKEN=your_secret_token_here + # - MT_API_TOKEN=your_secret_token_here volumes: - ./models:/app/models ``` @@ -174,7 +174,7 @@ export MT_PORT=9000 | 名称 | URL | 插件设置 | | ---------------- | --------------------------------------------- | -------------------------------------------------------------------------------- | | 沉浸式翻译无密码 | `http://localhost:8989/imme` | `自定义API 设置` - `API URL` | -| 沉浸式翻译有密码 | `http://localhost:8989/imme?token=your_token` | 同上,需要更改 URL 尾部的 `your_token` 为你的 `API_TOKEN` 或 `CORE_API_TOKEN` 值 | +| 沉浸式翻译有密码 | `http://localhost:8989/imme?token=your_token` | 同上,需要更改 URL 尾部的 `your_token` 为你的 `MT_API_TOKEN` 值 | | 简约翻译无密码 | `http://localhost:8989/kiss` | `接口设置` - `Custom` - `URL` | | 简约翻译有密码 | `http://localhost:8989/kiss` | 同上,需要 `KEY` 填 `your_token` | | DeepL 兼容 | `http://localhost:8989/deepl` | 使用 `DeepL-Auth-Key` 或 `Bearer` 认证 | diff --git a/README_en.md b/README_en.md index 31aba03..5155b83 100644 --- a/README_en.md +++ b/README_en.md @@ -67,7 +67,7 @@ services: - MT_PORT=8989 - MT_ENABLE_UI=true - MT_OFFLINE=false - # - API_TOKEN=your_secret_token_here + # - MT_API_TOKEN=your_secret_token_here volumes: - ./models:/app/models ``` @@ -178,7 +178,7 @@ The server provides compatible endpoints for multiple translation plugins: | Name | URL | Plugin Setting | | ------------------------------------- | --------------------------------------------- | -------------------------------------------------------------------------------- | | Immersive Translation (No Password) | `http://localhost:8989/imme` | `Custom API Settings` - `API URL` | -| Immersive Translation (With Password) | `http://localhost:8989/imme?token=your_token` | Same as above, change `your_token` to your `API_TOKEN` or `CORE_API_TOKEN` value | +| Immersive Translation (With Password) | `http://localhost:8989/imme?token=your_token` | Same as above, change `your_token` to your `MT_API_TOKEN` value | | Kiss Translator (No Password) | `http://localhost:8989/kiss` | `Interface Settings` - `Custom` - `URL` | | Kiss Translator (With Password) | `http://localhost:8989/kiss` | Same as above, fill `KEY` with `your_token` | | DeepL Compatible | `http://localhost:8989/deepl` | Use `DeepL-Auth-Key` or `Bearer` authentication | diff --git a/compose.yml b/compose.yml index 84510ac..15ba06e 100644 --- a/compose.yml +++ b/compose.yml @@ -10,7 +10,7 @@ services: - MT_PORT=8989 - MT_ENABLE_UI=true - MT_OFFLINE=false - # - API_TOKEN=your_secret_token_here # 取消注释以启用 API 认证 + # - MT_API_TOKEN=your_secret_token_here # 取消注释以启用 API 认证 volumes: - ./models:/app/models # 翻译模型目录 healthcheck: diff --git a/docs/docs/zh/guide/index.md b/docs/docs/zh/guide/index.md index 9e4a7b3..d038fb8 100644 --- a/docs/docs/zh/guide/index.md +++ b/docs/docs/zh/guide/index.md @@ -110,7 +110,7 @@ services: volumes: - ./models:/app/models environment: - - CORE_API_TOKEN=your_token + - MT_API_TOKEN=your_token ``` #### 1.3 可选步骤 @@ -208,11 +208,11 @@ docker compose up -d 下面表格内的 `8989` 端口可以替换为你在 `compose.yml` 文件中设置的端口值。 -如果未设置 `CORE_API_TOKEN` 或者设置为空,翻译插件使用`无密码`的 API。 +如果未设置 `MT_API_TOKEN` 或者设置为空,翻译插件使用`无密码`的 API。 -如果设置了 `CORE_API_TOKEN`,翻译插件使用`有密码`的 API。 +如果设置了 `MT_API_TOKEN`,翻译插件使用`有密码`的 API。 -下面表格中的 `your_token` 替换为你在 `config.ini` 文件中设置的 `CORE_API_TOKEN` 值。 +下面表格中的 `your_token` 替换为你在 `compose.yml` 文件中设置的 `MT_API_TOKEN` 值。 #### 翻译插件接口: @@ -227,7 +227,7 @@ docker compose up -d | 名称 | URL | 插件设置 | | -------------------------- | --------------------------------------------- | ----------------------------------------------------------------- | | 沉浸式翻译无密码 | `http://localhost:8989/imme` | `自定义API 设置` - `API URL` | -| 沉浸式翻译有密码 | `http://localhost:8989/imme?token=your_token` | 同上,需要更改 URL 尾部的 `your_token` 为你的 `CORE_API_TOKEN` 值 | +| 沉浸式翻译有密码 | `http://localhost:8989/imme?token=your_token` | 同上,需要更改 URL 尾部的 `your_token` 为你的 `MT_API_TOKEN` 值 | | 简约翻译无密码 | `http://localhost:8989/kiss` | `接口设置` - `Custom` - `URL` | | 简约翻译有密码 | `http://localhost:8989/kiss` | 同上,需要 `KEY` 填 `your_token` | | 划词翻译自定义翻译源无密码 | `http://localhost:8989/hcfy` | `设置`-`其他`-`自定义翻译源`-`接口地址` |