# 自托管的 Discourse

**URL:** https://meta.discourse.org/t/discourse-for-self-hosting/175420
**Category:** Self-hosting
**Tags:** hosting
**Created:** [2021年一月7日 21:02 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420 "2021-01-07T21:02:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![unitfactory](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@unitfactory](https://meta.discourse.org/u/unitfactory)
#### Post date: [2021年一月7日 21:02 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420/1 "2021-01-07T21:02:13Z")

</div>

大家好，

我们正在寻找社区软件，并希望使用 Discourse。有几个问题：

- 是否可以在我们的服务器上通过 Docker 托管 Discourse？
- 我们的认证系统使用 Keycloak。我们能否将其与 Discourse 集成？
- 能否为客户创建“群组”？这样某人只能查看或访问特定的房间？

感谢支持。

祝好，  
Ralf

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年一月7日 21:22 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420/2 "2021-01-07T21:22:32Z")

</div>

> [@unitfactory](#):
>
> 是否可以在我们的服务器上通过 Docker 托管 Discourse？

是的，您可以在自己的服务器上托管 Discourse……我们提供官方的安装指南。

> [@unitfactory](#):
>
> 我们的认证系统使用的是 Keycloak。

应该可以！Keycloak 似乎支持 OAuth 2，这与 Discourse 兼容——[Discourse OAuth2 Basic](https://meta.discourse.org/t/oauth2-basic-support/33879)

> [@unitfactory](#):
>
> 我们能否为客户创建“群组”？这样某人只能查看或访问特定的房间？

可以。您可以创建群组，并利用它们来控制对特定分类的访问权限（[https://meta.discourse.org/t/how-to-use-category-security-settings-to-create-private-categories/87678）。群组内的成员还可以通过私信进行相互沟通。](https://meta.discourse.org/t/how-to-use-category-security-settings-to-create-private-categories/87678%EF%BC%89%E3%80%82%E7%BE%A4%E7%BB%84%E5%86%85%E7%9A%84%E6%88%90%E5%91%98%E8%BF%98%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E7%A7%81%E4%BF%A1%E8%BF%9B%E8%A1%8C%E7%9B%B8%E4%BA%92%E6%B2%9F%E9%80%9A%E3%80%82)

---

<div class="post-metadata">

### Author: ![unitfactory](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@unitfactory](https://meta.discourse.org/u/unitfactory)
#### Post date: [2021年一月7日 21:26 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420/3 "2021-01-07T21:26:38Z")

</div>

谢谢 Kris。我们可以更改 UI 并安装语言包吗？

Keycloak 使用 OAuth 和 SSO。用户登录后，应能访问我们的所有应用程序，例如 Discourse。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年一月7日 21:33 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420/4 "2021-01-07T21:33:24Z")

</div>

是的，我们拥有一套主题系统，可让您自定义用户界面……以下指南或许能为您提供帮助：

[Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966/)  
[Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)

关于语言设置，您可以通过名为 `default locale` 的管理员设置更改默认界面语言；用户也可在个人偏好设置中单独更改其语言。

我们的翻译由社区众包完成，可用语言列表及其完成度可在此查看：[Crowdin Enterprise](https://translate.discourse.org/discourse)

---

<div class="post-metadata">

### Author: ![unitfactory](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@unitfactory](https://meta.discourse.org/u/unitfactory)
#### Post date: [2021年一月7日 21:35 UTC](https://meta.discourse.org/t/discourse-for-self-hosting/175420/5 "2021-01-07T21:35:01Z")

</div>

太棒了，谢谢 Kris。
