# Unable to Add My Community Website to Discourse Hub – Seeking Help

**URL:** <https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102>\
**Category:** Product Support\
**Tags:** discourse-hub\
**Created:** [January 14, 2025, 5:15pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102 "2025-01-14T17:15:05Z")\
**Posts on this page:** 14\
**Page:** 1

## AI-generated summary

The user qingfeng1024 is seeking help to add their community website, starorigin.net, to the Discourse Hub, which previously worked but stopped after a server migration and Cloudflare setup. The issue stems from a `HEAD` request to `https://starorigin.net/user-api-key/new` returning a 400 error, preventing the site from being listed. [pmusaraj](/t/-/347102/2) identifies that Cloudflare's configuration blocks access to this endpoint, suggesting a page rule to bypass caching. [qingfeng1024](/t/-/347102/3) attempts to configure a page rule but later disables Cloudflare, only to find DNS still points to Cloudflare, indicating incomplete setup. [supermathie](/t/-/347102/6) clarifies that the server's 400 error is expected and not a server issue, while [qingfeng1024](/t/-/347102/7) confirms the server returns a 400 error. [supermathie](/t/-/347102/8) further explains that the 400 error is correct behavior and not a problem. [qingfeng1024](/t/-/347102/11) notes others face similar issues, but [supermathie](/t/-/347102/12) clarifies these are correct behaviors, not issues. [在云端_裸奔](/t/-/347102/13) shares that reverse proxy configurations in Baota and 1Panel, with `proxy_cache` enabled by default, are likely the root cause, suggesting disabling it resolves the problem.

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 14, 2025, 5:15pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/1 "2025-01-14T17:15:05Z")

</div>

Hello ,  
I’m writing to seek assistance with an issue I’ve been struggling with for some time: **my personal community website ([starorigin.net](http://starorigin.net)) cannot be added to the Discourse Hub**. After researching , I’ve noticed that several others have faced similar issues over the years, and unfortunately, some of these cases remain unresolved. I’m now in the same situation and would greatly appreciate any help or guidance.

Here’s a summary of my situation:

1. **Initial Success:**

2. **Current Issue:**

3. **What I’ve Tried:**

I’m truly passionate about my community and want to make it as accessible as possible for my friends and members. Thank you in advance for your time and support!

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [January 14, 2025, 5:46pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/2 "2025-01-14T17:46:21Z")

</div>

DiscourseHub makes a `HEAD` request to:

`https://starorigin.net/user-api-key/new`

And it receives a 400 error so it cannot continue adding the site. You need to modify your Cloudflare configuration to allow access to that endpoint.

---

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 14, 2025, 6:13pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/3 "2025-01-14T18:13:55Z")

</div>

1. **I Create a Page Rule for `/user-api-key/new`** :

- Log in to the Cloudflare dashboard.
- Navigate to **Rules** \> **Page Rules**.
- Click **Create Page Rule**.
- In the **If the URL matches** field, enter:

[https://starorigin.net/user-api-key/new](https://starorigin.net/user-api-key/new)

- Under **Then the settings are** , select:
  - **Cache Level** : Bypass
  - **Security Level** : Off
  - Save the rule and test it.

 ![A screenshot of a page showing settings for security, cache level, and URLs for a specific URL. (由 AI 生成标题)](https://global.discourse-cdn.com/meta/original/4X/6/7/5/67572e5fabddd943e44a9e80e33c561a3d58e9c3.png)

- However, this does not seem to work. The output I am getting looks like this:

```plaintext

{"errors":["param is missing or the value is empty: nonce"]}

```

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [January 14, 2025, 6:23pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/4 "2025-01-14T18:23:35Z")

</div>

Sorry, I don’t know how the Cloudflare UI works. You might want to look into the [Cloudflare forums](https://community.cloudflare.com).

---

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 14, 2025, 8:43pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/5 "2025-01-14T20:43:34Z")

</div>

> [@pmusaraj](#):
>
> DiscourseHub makes a `HEAD` request to:
> 
> `https://starorigin.net/user-api-key/new`
> 
> And it receives a 400 error so it cannot continue adding the site. You need to modify your Cloudflare configuration to allow access to that endpoint.

Thank you for the suggestion. I tried disabling Cloudflare, but I still cannot access `https://starorigin.net/user-api-key/new` directly, and the 400 error persists. This makes me think the issue might be on my server side.

Could you please advise where I should check in my server configuration?  
thanks！

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [January 14, 2025, 8:52pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/6 "2025-01-14T20:52:47Z")

</div>

> [@shannon1024](#):
>
> This makes me think the issue might be on my server side.

Test this theory by temporarily disabling Cloudflare, waiting for the DNS TTL to expire, then trying to add it again to Discourse Hub.

---

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 14, 2025, 10:19pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/7 "2025-01-14T22:19:11Z")

</div>

> [@supermathie](#):
>
> Test this theory by temporarily disabling Cloudflare, waiting for the DNS TTL to expire, then trying to add it again to Discourse Hub.

```plaintext
curl -v http://127.0.0.1:8080/user-api-key/new
* Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET /user-api-key/new HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.5.0
> Accept: */*
> 
< HTTP/1.1 400 Bad Request
< Server: nginx
< Date: Tue, 14 Jan 2025 22:15:08 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 0
< X-Content-Type-Options: nosniff
< X-Permitted-Cross-Domain-Policies: none
< Referrer-Policy: strict-origin-when-cross-origin
< X-Discourse-Route: user_api_keys/new
< Vary: Accept
< X-Request-Id: fe9303f5-ce51-4bd2-a73e-cda5a6d654e9
< X-Runtime: 0.004521
< 
* Connection #0 to host 127.0.0.1 left intact
{"errors":["param is missing or the value is empty: nonce"]}

```

This is the debugging result from my server. I think there might be some issues with my container, causing it to be inaccessible. What could be the reason for this, and how can I troubleshoot it? If you could provide any assistance, I would greatly appreciate it.

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [January 14, 2025, 10:23pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/8 "2025-01-14T22:23:09Z")

</div>

> [@shannon1024](#):
>
> This is the debugging result from my server. I think there might be some issues with my container, causing it to be inaccessible.

You tested something completely different that what I suggested, and only demonstrated that your server was functioning correctly.

The error you received was:

```plaintext
{"errors":["param is missing or the value is empty: nonce"]}

```

The server is correct. You called this API incorrectly, hence the error. You’ll get the same result against e.g. [meta.discourse.org](http://meta.discourse.org):

```plaintext
○ → curl https://meta.discourse.org/user-api-key/new
{"errors":["param is missing or the value is empty: nonce"]}

```

---

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 14, 2025, 10:37pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/9 "2025-01-14T22:37:38Z")

</div>

I have turned off Cloudflare to allow traffic to access my server directly. It has been three hours, but I still cannot find my website on Discourse Hub. I am now unsure where to look for the issue.

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [January 14, 2025, 10:40pm UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/10 "2025-01-14T22:40:10Z")

</div>

> [@shannon1024](#):
>
> I have turned off Cloudflare to allow traffic to access my server directly.

This statement is incorrect - a DNS lookup for [starorigin.net](http://starorigin.net) against Cloudflare’s nameservers still returns their IPs:

```plaintext
○ → host starorigin.net colin.ns.cloudflare.com
Using domain server:
Name: colin.ns.cloudflare.com
Address: 162.159.44.75#53
Aliases: 

starorigin.net has address 172.64.80.1
starorigin.net has IPv6 address 2606:4700:130:436c:6f75:6466:6c61:7265

```

---

<div class="post-metadata">

**Author:** ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Post date:** [January 15, 2025, 1:23am UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/11 "2025-01-15T01:23:30Z")

</div>

I found that several other communities are experiencing a similar issue to mine. For example, baidu.do ([https://baidu.do/user-api-key/new](https://baidu.do/user-api-key/new)) is also inaccessible for me, but it can still be found on Discourse Hub. Why is this happening?

Even for the OpenAI community, this URL outputs the same content as my personal website, yet it is still searchable on Discourse Hub.

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [January 15, 2025, 1:30am UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/12 "2025-01-15T01:30:59Z")

</div>

> [@shannon1024](#):
>
> I found that several other communities are experiencing a similar issue to mine.

These are not “issues” this is **correct behaviour**.

`/user-api-key/new` needs additional parameters sent with it - calling it from curl **really is a bad request**.

You need to **correctly turn off Cloudflare** to identify the source of the problem.

---

<div class="post-metadata">

**Author:** ![在云端\_裸奔](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/%E5%9C%A8%E4%BA%91%E7%AB%AF_%E8%A3%B8%E5%A5%94/32/521454_2.png) [@在云端\_裸奔](https://meta.discourse.org/u/%E5%9C%A8%E4%BA%91%E7%AB%AF_%E8%A3%B8%E5%A5%94)\
**Post date:** [November 7, 2025, 12:35am UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/13 "2025-11-07T00:35:11Z")

</div>

Greetings, my friend. I’ve already solved this issue. It was caused by the reverse proxy configuration of Baota and 1Panel. In essence, both platforms have `proxy_cache` enabled by default in their NGINX configurations. Adding `proxy_cache off;` to the reverse proxy rules should resolve the problem.

For further details, please refer to:

> **[无法在Discourse Hub添加自己的Discourse站点解决办法](https://www.discoze.com/t/topic/17)**
>
> Discourse有一个官方的APP，叫Discourse Hub。可以在应用商店搜到。用这个APP可以添加任何Discourse搭建的站点。 当我高高兴兴去下载APP，添加站点的时候，却发现怎么都添加不上。提示“未找到任何网站。您也可以输入Discourse 社区的完整域并添加！”。输入完整的域名discourse.org.cn和地址https://discourse.org.cn/ 都不行。 ...

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [December 7, 2025, 12:35am UTC](https://meta.discourse.org/t/unable-to-add-my-community-website-to-discourse-hub-seeking-help/347102/14 "2025-12-07T00:35:23Z")

</div>

Closed on December 7, 2025, 12:35am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
