# 如何自动化配置

**URL:** <https://meta.discourse.org/t/how-to-automate-configuration/177291>\
**Category:** Support\
**Created:** [2021年一月26日 10:06 UTC](https://meta.discourse.org/t/how-to-automate-configuration/177291 "2021-01-26T10:06:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年一月26日 17:18 UTC](https://meta.discourse.org/t/how-to-automate-configuration/177291/6 "2021-01-26T17:18:07Z")

</div>

您可以使用环境变量设置所有站点配置（例如 `DISCOURSE_SETTING_NAME=xxx`）。您还可以通过 [API 进行更改](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)。此外，正如 NoBugsBunny 所建议的，有时使用插件是一个很好的实现方式。

这超出了我在此提供的免费支持范围。我不推荐 Bitnami，但曾与使用它的客户合作过。我完成过几次 GKE 部署（使用 `./launcher` 构建的受支持容器），并具备使用 Ansible 部署和管理 Discourse 的经验。如果您需要帮助且拥有预算，请联系 [jay@literatecomputing.com](mailto:jay@literatecomputing.com)。

---

_[View the full topic](https://meta.discourse.org/t/how-to-automate-configuration/177291)._
