# 使用 Nginx Proxy Manager 管理多个 Discourse 站点

**URL:** <https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [2021 年8 月 17 日 08:21 UTC](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344 "2021-08-17T08:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

作者： ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/579307_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)\
发布日期： [2024 年2 月 25 日 17:26 UTC](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344/34 "2024-02-25T17:26:09Z")

</div>

哇，这是一个相当复杂的主题，有很多的“如果”和“但是”。

今天我也尝试了设置，但很不幸地彻底失败了。说明的初衷是好的，但恕我直言，它们并不那么容易理解/领会。

当我使用 Docker 时，我通常希望容器能够独立/隔离地运行。没有太多的依赖、先决条件和“单点故障”。但这正是这种方法所带来的问题：NPM 是一个很棒的工具。我不明白为什么我必须对它的 Docker 配置进行特殊调整，才能让 Discourse 正常运行并为其提供证书。在家中，我也为我的 DynDNS 域名使用 NPM，以便随时灵活地分配服务和主机。并公开其中一些（Home Assistant、Grafana 等）。

今天我想合并我的两个 Discourse 实例。我特意从 Hetzner/德国租用了一台云服务器。这就是为什么 Discourse 没有预装，因为说明是这样假设的。

我希望 Discourse 默认能官方提供使用 NPM 的安装方式。或者至少不要让 `./discourse-setup` 脚本带来这么多麻烦。

---

_[View the full topic](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344)._
