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:
Luis Pater
2025-08-31 15:25:00 +08:00
parent c0eaa41c7a
commit 6d30faf9c9

View File

@@ -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>`