# 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:** 5

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年九月28日 22:06 UTC](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520/5 "2024-09-28T22:06:47Z")

</div>

您好 @joshhabka 👋  
也许这个话题能帮到您，如果您还没看过的话：

> [@Install Discourse on a residential internet with Cloudflare Tunnel](https://meta.discourse.org/t/install-discourse-on-a-residential-internet-with-cloudflare-tunnel/211297):
>
> Since [Discourse now has support for running on a Raspberry Pi](https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/), running a small instance in your home lab will become a common use case. However, many residential ISPs block incoming traffic to the ports 80/443 that Discourse need. For our demo site at [https://discourse-on-a-pi.falco.dev/](https://discourse-on-a-pi.falco.dev/) we used [Cloudflare Tunnel](https://blog.cloudflare.com/tunnel-for-everyone/) to work around this, and you can do it too! Setup your tunnel First, follow the following guide: The only change you need is changing the URL from url: http://localhost:8000 to url…

---

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