mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-19 21:00:52 +08:00
Update Management API CN docs for authentication requirements
- Changed authentication requirements to mandate management keys for all requests, including local access. - Clarified remote access setup and key provision methods. - Adjusted the section header.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 管理 API(简体中文)
|
# 管理 API
|
||||||
|
|
||||||
基础路径:`http://localhost:8317/v0/management`
|
基础路径:`http://localhost:8317/v0/management`
|
||||||
|
|
||||||
@@ -10,9 +10,8 @@
|
|||||||
|
|
||||||
## 认证
|
## 认证
|
||||||
|
|
||||||
- 本地访问(`127.0.0.1`、`::1`):无需管理密钥。
|
- 所有请求(包括本地访问)都必须提供有效的管理密钥.
|
||||||
- 远程访问:需要同时满足:
|
- 远程访问需要在配置文件中开启远程访问: `allow-remote-management: true`
|
||||||
- 配置中 `allow-remote-management: true`
|
|
||||||
- 通过以下任意方式提供管理密钥(明文):
|
- 通过以下任意方式提供管理密钥(明文):
|
||||||
- `Authorization: Bearer <plaintext-key>`
|
- `Authorization: Bearer <plaintext-key>`
|
||||||
- `X-Management-Key: <plaintext-key>`
|
- `X-Management-Key: <plaintext-key>`
|
||||||
|
|||||||
Reference in New Issue
Block a user