mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 05:56:15 -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
21
docs/locales/zh/advanced/outgoing-proxy.md
Normal file
21
docs/locales/zh/advanced/outgoing-proxy.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# 出站 HTTP 代理
|
||||
|
||||
GoToSocial 支持配置 HTTP 代理使用的标准环境变量,用于出站请求:
|
||||
|
||||
* `HTTP_PROXY`
|
||||
* `HTTPS_PROXY`
|
||||
* `NO_PROXY`
|
||||
|
||||
这些环境变量的小写版本也同样被识别。在处理 https 请求时,`HTTPS_PROXY` 的优先级高于 `HTTP_PROXY`。
|
||||
|
||||
环境变量的值可以是完整的 URL 或 `host[:port]`,在这种情况下默认使用 "http" 协议。支持的协议包括 "http"、"https" 和 "socks5"。
|
||||
|
||||
## systemd
|
||||
|
||||
使用 systemd 运行时,可以在 `Service` 部分使用 `Environment` 选项添加必要的环境变量。
|
||||
|
||||
如何操作可以参考 [`systemd.exec` 手册](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Environment)。
|
||||
|
||||
## 容器运行时
|
||||
|
||||
可以在 compose 文件的 `environment` 键下设置环境变量。你也可以在命令行中使用 `-e KEY=VALUE` 或 `--env KEY=VALUE` 传递给 Docker 或 Podman 的 `run` 命令。
|
||||
Loading…
Add table
Add a link
Reference in a new issue