mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-27 22:53:32 -06:00
[docs] add zh docs (#3507)
* [docs] add zh docs * [docs] add lang dropdown * [docs] update mkdocs zh config * [docs] migrate assets * [docs] update overrides dir in mkdocs zh config * [docs] exclude locales director in main mkdocs config * [docs] rename assets to public to avoid conflicting with template * [docs] extra_css change followup * [docs] add theme.palette.toggle.icon back into mkdocs zh config * [docs] fix zh readme reference + migrate language-specific repo markdown to docs * [docs] translate remaining repo docs + update reference * [docs] update zh index.md reference * [docs/zh] wording alignment
This commit is contained in:
parent
e953d80dff
commit
38a08cd25a
139 changed files with 20407 additions and 24 deletions
11
docs/locales/zh/federation/access_control.md
Normal file
11
docs/locales/zh/federation/access_control.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# 访问控制
|
||||
|
||||
GoToSocial 使用访问控制限制来保护用户和资源免受外站账户和实例的不必要互动。
|
||||
|
||||
如[HTTP 签名](#http-signatures)部分所示,GoToSocial 要求所有来自外站服务器的传入 `GET` 和 `POST` 请求必须签名。未签名的请求将被拒绝,并返回 http 代码 `401 Unauthorized`。
|
||||
|
||||
访问控制限制通过检查签名的 `keyId` (即谁拥有发出请求的公钥/私钥对)来实现。
|
||||
|
||||
首先,会将 `keyId` URI 的主机值与 GoToSocial 实例的已屏蔽(取消联合)的域列表进行检查。如果域名被检测到位于屏蔽列表,则 http 请求将立即以 http 代码 `403 Forbidden` 中止。
|
||||
|
||||
接下来,GoToSocial 将检查发出 http 请求的公钥所有者与请求目标资源的所有者之间是否存在(任一方向的)屏蔽。如果 GoToSocial 用户屏蔽了发出请求的外站账户,则请求将以 http 代码 `403 Forbidden` 中止。
|
||||
Loading…
Add table
Add a link
Reference in a new issue