# Zelf Discourse hosten in China onder de GFW

**URL:** https://meta.discourse.org/t/selfhost-discourse-in-mainland-china-under-the-gfw/347038
**Category:** Self-hosting
**Tags:** hosting
**Created:** [14 januari 2025 om 10:23 UTC](https://meta.discourse.org/t/selfhost-discourse-in-mainland-china-under-the-gfw/347038 "2025-01-14T10:23:32Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [15 januari 2025 om 12:31 UTC](https://meta.discourse.org/t/selfhost-discourse-in-mainland-china-under-the-gfw/347038/5 "2025-01-15T12:31:17Z")

</div>

> [@J\_J1](#):
>
> Yes, I’ve seen this post. It’s essentially a Chinese translation of [INSTALL-cloud.md](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md.)

It covers parts specific to China, such as the issue you faced:

> [@cn Discourse Official Install Guide | Discourse 云平台安装](https://meta.discourse.org/t/discourse-official-install-guide-discourse/197803/1):
>
> #### 国网络环境的优化
> 
> 如果你的云服务器在中国大陆，那你在执行 `./discourse-setup` 或者 `./launcher rebuild app` 的过程中很可能遇到一些网络问题。Discourse已经帮你写好了除了docker以外的镜像服务，只需要在你的 `containers/app.yml` 中的这里添加一行：
> 
> ```plaintext
> templates:
> - "templates/postgres.template.yml"
> - "templates/redis.template.yml"
> - "templates/web.template.yml"
> - "templates/web.china.template.yml" # 添加这一行，配置npm, rubygems等包管理器的镜像
> 
> ```
> 
> 即可解决。

---

_[View the full topic](https://meta.discourse.org/t/selfhost-discourse-in-mainland-china-under-the-gfw/347038)._
