# Wiki

**URL:** https://meta.discourse.org/c/wiki/177.md?page=1

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 2

---

## [撰写高效功能请求：分步指南](https://meta.discourse.org/t/writing-an-effective-feature-request-a-step-by-step-guide/327385)

<div class="topic-metadata">

**Author:** [@ondrej](https://meta.discourse.org/u/ondrej)\
**回覆:** 3\
**Last updated:** [2024年十月1日 19:12 UTC](https://meta.discourse.org/t/writing-an-effective-feature-request-a-step-by-step-guide/327385 "2024-10-01T19:12:29Z")

</div>

摘要 本文档主题介绍如何在 Discourse 中撰写功能请求：分步指南。 第 1 步：开始之前 所以，您对 Discourse 有一个很棒的功能创意？太棒了！以下是您如何分享 …

---

## [在单个 VPS 上使用 Nginx 反向代理运行 Discourse 和 WordPress (Docker)](https://meta.discourse.org/t/running-discourse-with-wordpress-docker-on-a-single-vps-using-nginx-reverse-proxy/392094)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**回覆:** 0\
**Last updated:** [2025年十二月24日 16:14 UTC](https://meta.discourse.org/t/running-discourse-with-wordpress-docker-on-a-single-vps-using-nginx-reverse-proxy/392094 "2025-12-24T16:14:24Z")

</div>

介绍 默认情况下，Discourse “独立”安装会绑定到端口 80 和 443。要在同一服务器上托管另一个应用程序（如 WordPress），您必须重新配置 Discourse 以便侦听内部端口并使用……

---

## [一些 wp-discourse + cloudflare 的经验教训](https://meta.discourse.org/t/some-wp-discourse-cloudflare-lessons-learned/391942)

<div class="topic-metadata">

**Author:** [@Lee\_Ars](https://meta.discourse.org/u/Lee_Ars)\
**回覆:** 0\
**Last updated:** [2025年十二月22日 18:06 UTC](https://meta.discourse.org/t/some-wp-discourse-cloudflare-lessons-learned/391942 "2025-12-22T18:06:12Z")

</div>

在过去几个月里，我使用 Discourse、wp-discourse 和 Cloudflare 学习到了一些特定于个人设置的经验。分享给大家，希望对大家有所帮助。 环境： Discourse 和 Wordpress 托管在 sepa……

---

## [使用 Let's Encrypt 设置多个域名 / 重定向](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685)

<div class="topic-metadata">

**Author:** [@brahn](https://meta.discourse.org/u/brahn)\
**回覆:** 111\
**Last updated:** [2025年十二月16日 02:52 UTC](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685 "2025-12-16T02:52:10Z")

</div>

NOTE: @pfaffman says: This page needs to be cleaned up. There is now a new ENV setting that will let you add more hostnames. In your app.yml under your DISCOURSE\_HOSTNAME line (it can go many places but that one makes se…

---

## [在插件中覆盖现有的Discourse方法](https://meta.discourse.org/t/override-existing-discourse-methods-in-plugins/83389)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**回覆:** 8\
**Last updated:** [2025年十二月10日 17:36 UTC](https://meta.discourse.org/t/override-existing-discourse-methods-in-plugins/83389 "2025-12-10T17:36:56Z")

</div>

I’ve been running into a bunch of instances recently of needing to override existing ruby methods from plugins, and thought I’d share my best practices here. Overriding an instance method class ::TopicQuery module Bab…

---

## [Discourse AI：Discord 机器人集成指南](https://meta.discourse.org/t/discourse-ai-discord-bot-integration-guide/390391)

<div class="topic-metadata">

**Author:** [@DevTeVe](https://meta.discourse.org/u/DevTeVe)\
**回覆:** 0\
**Last updated:** [2025年十二月4日 10:07 UTC](https://meta.discourse.org/t/discourse-ai-discord-bot-integration-guide/390391 "2025-12-04T10:07:23Z")

</div>

工作原理（架构） 在设置此项之前，重要的是要了解您不需要在服务器上托管单独的机器人应用程序或运行“机器人”脚本（如 Node.js 或 Python 机器人）。 ▶ 这个集……

---

## [设置一个预发布服务器](https://meta.discourse.org/t/set-up-a-staging-server/225951)

<div class="topic-metadata">

**Author:** [@nathank](https://meta.discourse.org/u/nathank)\
**回覆:** 31\
**Last updated:** [2024年十一月30日 11:12 UTC](https://meta.discourse.org/t/set-up-a-staging-server/225951 "2024-11-30T11:12:02Z")

</div>

设置暂存服务器时，有几种技巧可以提供帮助。 什么是暂存服务器？ 暂存服务器本质上是生产站点的克隆。它也驻留在服务器上，并且功能相同。它在 Docker 容器内运行，就像普通的 Discourse 站点一样。 它提供了一个可以尝试风险操作或试用那些不容易向用户隐藏的功能的地方。它对于试用广告（使用 https://meta.discourse.org/t/official-advertising-ad-plugin-for-disco…

---

## [使用WP Discourse和DiscourseConnect配置单点登录（SSO）](https://meta.discourse.org/t/configure-single-sign-on-sso-with-wp-discourse-and-discourseconnect/223494)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 19\
**Last updated:** [2025年十一月24日 11:46 UTC](https://meta.discourse.org/t/configure-single-sign-on-sso-with-wp-discourse-and-discourseconnect/223494 "2025-11-24T11:46:16Z")

</div>

The WP Discourse plugin lets you set up DiscourseConnect in Wordpress so your users can use their Wordpress account to log into Discourse, or their Discourse account to log into Wordpress. Before you can set up Discourse…

---

## [WP Discourse 评论区模块](https://meta.discourse.org/t/wp-discourse-comments-block/249790)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 16\
**Last updated:** [2025年十一月13日 19:03 UTC](https://meta.discourse.org/t/wp-discourse-comments-block/249790 "2025-11-13T19:03:41Z")

</div>

从 2.4.7 版本开始，WP Discourse 插件包含了一个用于区块编辑器的 Discourse Comments 区块。Discourse Comments 区块是向支持区块的主题（如 Twenty Twenty Three）添加 Discourse Comments 的主要方式。这是一个关于如何使用 Discourse Comments 区块的短视频： 下一步 如果您还没有完成，请务必查看： 将 Discourse …

---

## [用户自定义字段验证实现](https://meta.discourse.org/t/user-custom-fields-validation-implementation/388179)

<div class="topic-metadata">

**Author:** [@Yan\_Rudenko](https://meta.discourse.org/u/Yan_Rudenko)\
**回覆:** 0\
**Last updated:** [2025年十一月11日 20:10 UTC](https://meta.discourse.org/t/user-custom-fields-validation-implementation/388179 "2025-11-11T20:10:06Z")

</div>

这篇文档是为未来可能需要为自定义插件创建特定于验证用户自定义字段的开发人员准备的。 撰写时使用的是 Discourse 版本 3.6.0.beta3-latest（当前提交 a7326abf15），s…

---

## [使用 rclone 同步到 Dropbox (2025)](https://meta.discourse.org/t/use-rclone-to-sync-to-dropbox-2025/378430)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回覆:** 3\
**Last updated:** [2025年十一月11日 00:00 UTC](https://meta.discourse.org/t/use-rclone-to-sync-to-dropbox-2025/378430 "2025-11-11T00:00:27Z")

</div>

管理员和版主：请随意将此主题移至其他位置或根据需要进行编辑。 这是我安装 rclone 并设置好将 Discourse 备份到 Drop 的详细分步说明……

---

## [将 vBulletin 4 论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-a-vbulletin-4-forum-to-discourse/54881)

<div class="topic-metadata">

**Author:** [@enigmaty](https://meta.discourse.org/u/enigmaty)\
**回覆:** 183\
**Last updated:** [2025年十一月9日 18:05 UTC](https://meta.discourse.org/t/migrate-a-vbulletin-4-forum-to-discourse/54881 "2025-11-09T18:05:20Z")

</div>

In this tutorial we will learn how to migrate vBulletin forum to :discourse: platform using vBulletin importer script. I have tested the script with a big database and the result was very good. The script is well writte…

---

## [🇨🇳 Detailed installation guide + control panel | 超级详细教学安装discourse+控制面板](https://meta.discourse.org/t/detailed-installation-guide-control-panel-discourse/278426)

<div class="topic-metadata">

**Author:** [@zengyunsi](https://meta.discourse.org/u/zengyunsi)\
**回覆:** 33\
**Last updated:** [2025年十月7日 20:19 UTC](https://meta.discourse.org/t/detailed-installation-guide-control-panel-discourse/278426 "2025-10-07T20:19:32Z")

</div>

我是一个做网站菜鸟，因为兴趣爱好，想搭建一个技术交流社区，准备搭建一个discourse，分享这篇教程，希望对有需要安装discourse的朋友，有帮助，避免踩坑，discourse的中文教程比较少，有的教程已经过时了，全靠翻译软件，研究了好几天。 需要做一个属于自己的discourse需要准备的： 阿里云轻量云服务器香港一个，国内的服务器下载github的插件像蜗牛一样，所以还是推荐用阿里云香港的轻量云，或者其它家轻量服务器，轻量…

---

## [静默链接文档](https://meta.discourse.org/t/add-silent-internal-links-by-appending-silent-true/381536)

<div class="topic-metadata">

**Author:** [@thoka](https://meta.discourse.org/u/thoka)\
**回覆:** 0\
**Last updated:** [2025年九月4日 08:07 UTC](https://meta.discourse.org/t/add-silent-internal-links-by-appending-silent-true/381536 "2025-09-04T08:07:40Z")

</div>

由于我找不到有关静默链接的文档，因此我向 ask.discourse.com 咨询了。 您能否评论一下它的答案或将其发展成一个文档主题？ Discourse 中的静默链接 静默链接是任何 Dis…

---

## [R2 和 Cloudflare 集成，分步迁移 Discourse](https://meta.discourse.org/t/step-by-step-discourse-migration-with-r2-and-cloudflare-integration/382491)

<div class="topic-metadata">

**Author:** [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)\
**回覆:** 0\
**Last updated:** [2025年九月13日 01:31 UTC](https://meta.discourse.org/t/step-by-step-discourse-migration-with-r2-and-cloudflare-integration/382491 "2025-09-13T01:31:47Z")

</div>

这是一份真实迁移的事后复盘/运行手册。我跳过了常见的 Discourse 准备工作（官方文档已涵盖）。我专注于具体的切换、Cloudflare R2 的陷阱、重要的 rails/rake 单行命令、失败的原因以及……

---

## [已关注的词语](https://meta.discourse.org/t/watched-words-to-block-recent-spam-attack/380420)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 12\
**Last updated:** [2025年九月10日 16:26 UTC](https://meta.discourse.org/t/watched-words-to-block-recent-spam-attack/380420 "2025-09-10T16:26:12Z")

</div>

我至少有两个网站受到了垃圾邮件的攻击，这些垃圾邮件似乎是为了污染大型语言模型（LLM）而设计的。最好的解决方案是设置 https://meta.discourse.org/t/discourse-ai-spam-detection/343541，我推荐这样做……

---

## [我的Meta（及其他）有用链接维基](https://meta.discourse.org/t/my-wiki-of-useful-meta-and-other-links/290591)

<div class="topic-metadata">

**Author:** [@NiceOldGuy](https://meta.discourse.org/u/NiceOldGuy)\
**回覆:** 1\
**Last updated:** [2025年八月23日 17:59 UTC](https://meta.discourse.org/t/my-wiki-of-useful-meta-and-other-links/290591 "2025-08-23T17:59:53Z")

</div>

Here’s a Wiki post that I started two years ago when I became a moderator on my (closed) forum. I kept bookmarking topics here on Meta and other sites that were useful, and tried to keep track of links fellow moderators …

---

## [将 Discourse 网站迁移到另一个 VPS 使用 rsync](https://meta.discourse.org/t/move-a-discourse-site-to-another-vps-with-rsync/43812)

<div class="topic-metadata">

**Author:** [@SystemZ](https://meta.discourse.org/u/SystemZ)\
**回覆:** 55\
**Last updated:** [2025年八月17日 22:20 UTC](https://meta.discourse.org/t/move-a-discourse-site-to-another-vps-with-rsync/43812 "2025-08-17T22:20:11Z")

</div>

This method is different than restoring file in UI. Maybe there is a more downtime but it’s simpler for linux folks without Discourse knowledge and it’s easy to automate. Prepare new VPS First, prepare our new Current …

---

## [垃圾邮件：追溯性地让 AI 审查最近的帖子，然后删除被标记为垃圾邮件的帖子](https://meta.discourse.org/t/spam-retroactively-get-ai-to-review-recent-posts-and-then-delete-the-ones-marked-as-spam/378956)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 0\
**Last updated:** [2025年八月17日 22:09 UTC](https://meta.discourse.org/t/spam-retroactively-get-ai-to-review-recent-posts-and-then-delete-the-ones-marked-as-spam/378956 "2025-08-17T22:09:43Z")

</div>

我帮助了一个每小时大约有 30 条垃圾邮件帖子的网站。我们启用了 AI Spam，但这并没有解决现有帖子的问题。这是我所做的。这可能对您有用。它尚未在您的网站上进行测试……

---

## [配置在 Discourse 事件触发的 Webhook 以集成外部服务](https://meta.discourse.org/t/configure-webhooks-that-trigger-on-discourse-events-to-integrate-with-external-services/49045)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**回覆:** 3\
**Last updated:** [2025年七月23日 06:24 UTC](https://meta.discourse.org/t/configure-webhooks-that-trigger-on-discourse-events-to-integrate-with-external-services/49045 "2025-07-23T06:24:45Z")

</div>

A webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its techni…

---

## [Discourse 自动每周备份和更新脚本 (避免S3上传问题)](https://meta.discourse.org/t/discourse-automated-weekly-backup-and-update-script-avoiding-s3-upload-issues/373804)

<div class="topic-metadata">

**Author:** [@copymonopoly](https://meta.discourse.org/u/copymonopoly)\
**回覆:** 3\
**Last updated:** [2025年七月11日 15:12 UTC](https://meta.discourse.org/t/discourse-automated-weekly-backup-and-update-script-avoiding-s3-upload-issues/373804 "2025-07-11T15:12:27Z")

</div>

在 Discourse 中，启用 S3 上传功能时生成的备份通常无法成功用于恢复站点，导致自动备份实际上无效。为了解决这个问题，我编写了这个脚本

---

## [🇨🇳 Discourse supports Chinese usernames | Discourse 支持中文用户名](https://meta.discourse.org/t/discourse-supports-chinese-usernames-discourse/278637)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 1\
**Last updated:** [2023年九月12日 02:55 UTC](https://meta.discourse.org/t/discourse-supports-chinese-usernames-discourse/278637 "2023-09-12T02:55:45Z")

</div>

Discourse 在默认安装的情况下是不支持中文用户名的输入的。 根据官方的说明，从 Discourse 2.3.0.beta9 版本开始，Discourse 就已经能够支持 Unicode 的用户名了，包括中文的用户名。 官方发布的文章为：Unicode usernames and group names - announcements - Discourse Meta 你需要对你的 Discourse 进行设置就行了。 …

---

## [将SMF2论坛迁移到Discourse](https://meta.discourse.org/t/migrate-an-smf2-forum-to-discourse/90314)

<div class="topic-metadata">

**Author:** [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**回覆:** 101\
**Last updated:** [2025年七月3日 13:32 UTC](https://meta.discourse.org/t/migrate-an-smf2-forum-to-discourse/90314 "2025-07-03T13:32:13Z")

</div>

SMF2 to Discourse - The Ultimate Guide Starting from the idea of creating an up-to-date guide to migrate from SMF2 to Discourse discussed in this excellent thread by @vincentMac and @cmwebdev, I have prepared an ambiti…

---

## [在 Mastodon 上发布帖子](https://meta.discourse.org/t/publishing-posts-to-mastodon/314609)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 19\
**Last updated:** [2025年七月3日 07:46 UTC](https://meta.discourse.org/t/publishing-posts-to-mastodon/314609 "2025-07-03T07:46:14Z")

</div>

本主题涵盖使用 Discourse ActivityPub 插件将 Discourse 的帖子发布到 Mastodon，并接续 设置 ActivityPub Actor 和 关注 ActivityPub Actor。如果您不确定这意味着什么，请先前往 Discourse ActivityPub 插件 主题。 说明 发布到 Mastodon： 为您想发布内容到 Mastodon 的分类或标签 设置 Actor。 复制 Actor…

---

## [将 WP Discourse 配置为显示 Discourse 的评论](https://meta.discourse.org/t/configure-wp-discourse-to-display-comments-from-discourse/223493)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 10\
**Last updated:** [2025年六月25日 10:10 UTC](https://meta.discourse.org/t/configure-wp-discourse-to-display-comments-from-discourse/223493 "2025-06-25T10:10:54Z")

</div>

您可以使用 Discourse 作为 Wordpress 的评论系统。评论功能依赖于发布功能，因此您需要设置发布功能才能使评论正常工作。如果您已设置发布功能并准备好设置评论，请观看此短视频或按照以下说明操作。 下一步 设置评论后，您可能需要查看以下主题 使用 Wordpress 登录 Discourse (DiscourseConnect) 说明 设置评论 要使 Discourse 评论显示在您的 WordPress 网站…

---

## [为反向IP查询配置MAXMIND](https://meta.discourse.org/t/configure-maxmind-for-reverse-ip-lookups/173941)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 17\
**Last updated:** [2025年十一月7日 00:40 UTC](https://meta.discourse.org/t/configure-maxmind-for-reverse-ip-lookups/173941 "2025-11-07T00:40:55Z")

</div>

What is MAXMIND and why would I want it? Discourse uses MAXMIND to provide geographical information for reverse IP lookups. Without Maxmind’s database you’ll see something like this: Or perhaps you’ve noticed thi…

---

## [用\`wget\`从电子邮件链接下载备份](https://meta.discourse.org/t/download-a-backup-from-an-email-link-with-wget/170623)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 4\
**Last updated:** [2025年六月23日 11:55 UTC](https://meta.discourse.org/t/download-a-backup-from-an-email-link-with-wget/170623 "2025-06-23T11:55:59Z")

</div>

For a seasoned sysadmin, the favored way of moving large files is a tool like rsync or scp, but sometimes, you don’t have ssh access to the host where you need to retrieve a large backup file. Because backup files conta…

---

## [使用 Prompt Master 机器人改进“Web Artifact Creator”机器人的结果](https://meta.discourse.org/t/improving-your-results-from-the-web-artifact-creator-bot-with-the-prompt-master-bot/369952)

<div class="topic-metadata">

**Author:** [@MachineScholar](https://meta.discourse.org/u/MachineScholar)\
**回覆:** 0\
**Last updated:** [2025年六月12日 20:55 UTC](https://meta.discourse.org/t/improving-your-results-from-the-web-artifact-creator-bot-with-the-prompt-master-bot/369952 "2025-06-12T20:55:18Z")

</div>

良好的提示工程是复杂的LLM交互（例如与Web Artifact Creator角色交互）获得非常有效结果的关键。但是，并非每个人都非常注重技术，因此本指南将教您如何……

---

## [🇨🇳 Discourse forum activation email issue | Discourse 论坛激活邮件问题](https://meta.discourse.org/t/discourse-forum-activation-email-issue-discourse/246830)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 3\
**Last updated:** [2025年六月14日 15:28 UTC](https://meta.discourse.org/t/discourse-forum-activation-email-issue-discourse/246830 "2025-06-14T15:28:04Z")

</div>

根据 Discourse 的官方推荐，我们使用的是 MailGun 的服务。 在大部分情况下都没有问题，但是在一些特定的邮件地址，例如 iCloud，我们在发送激活邮件的时候有提示为： "message": "5.5.1 Error: need MAIL command - MAIL FROM error: 450 4.1.8 \<bounce+6712f2.21c8873-lucas.hu=@mail.visafn.com\>: Se…

---

## [自定义新主题按钮](https://meta.discourse.org/t/customize-the-new-topic-button/197848)

<div class="topic-metadata">

**Author:** [@Don](https://meta.discourse.org/u/Don)\
**回覆:** 11\
**Last updated:** [2025年六月10日 22:58 UTC](https://meta.discourse.org/t/customize-the-new-topic-button/197848 "2025-06-10T22:58:15Z")

</div>

Hello, I just want to share with you how I make our new topic button. Little CSS :slight\_smile: I use for this color variables. (tertiary, secondary and primary-medium) New Topic button Open Draft button #creat…

[上一頁](https://meta.discourse.org/c/wiki/177.md)

[下一頁](https://meta.discourse.org/c/wiki/177.md?page=2)
