# Cloudflare Tunnels - Discourse 设置未识别主机名（端口不可访问）

**URL:** <https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520>\
**Category:** Self-hosting\
**Created:** [2024年九月28日 21:19 UTC](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520 "2024-09-28T21:19:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [2024年九月28日 23:34 UTC](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520/9 "2024-09-28T23:34:20Z")

</div>

> [@joshhabka](#):
>
> Lilly，上述指南对我不起作用，

你没有遵循说明。

你不能使用 discourse-setup，除非用它来创建 yml 文件。

> [@Falco](#):
>
> 请遵循 [如何在生产环境中安装 Discourse](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537)，但在它创建 app.yml 文件后，按 CTRL+C，它会给你一个 5 秒的倒计时。
> 
> 现在编辑文件的前几行，使其看起来像这样：

---

_[View the full topic](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520)._
