# Discourse 短链接路由 | 简化支持 URL

**URL:** <https://meta.discourse.org/t/discourse-shortlink-router-simplify-support-urls/401542>\
**Category:** Extras\
**Created:** [2026年四月26日 02:54 UTC](https://meta.discourse.org/t/discourse-shortlink-router-simplify-support-urls/401542 "2026-04-26T02:54:10Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [2026年五月22日 05:55 UTC](https://meta.discourse.org/t/discourse-shortlink-router-simplify-support-urls/401542/9 "2026-05-22T05:55:55Z")

</div>

> [@darkpixlz](#):
>
> 它几乎可以重新用于任何用途；我之所以将其命名为“Discourse 路由器”，只是因为那是最初的意图。

我原以为我之前答应过要写一份 README，但看来并没有。无论如何，我已经发布了一份关于如何自托管或重新利用的简易指南！代码库仍在 [GitHub](https://github.com/pyxfluff/discourse-router) 上，但以防您因某种原因不想离开这里，我将其粘贴在下面：

> **说明**
>
> ## 设置
> 
> 请确保您拥有虚拟环境（venv）以及 Python 3.13 或更高版本（仅在 3.14 上测试过，但 3.13 应该没有问题；如果遇到编译器错误，请更新 Python）：
> 
> ```sh
> uv venv
> source .venv/bin/activate
> uv pip install .
> 
> ```
> 
> （可选）编辑您的配置文件：
> 
> ```sh
> nano src/backend_config.jsonc
> 
> ```
> 
> 大多数设置都一目了然。`web.hostname` 仅用于 UI 中的外观展示，不会影响功能。
> 
> 就这样！启动它：
> 
> ```sh
> python3 -m src
> 
> ```
> 
> 您无需手动执行 uvicorn 应用，Python 模块会自动执行它。

---

_[View the full topic](https://meta.discourse.org/t/discourse-shortlink-router-simplify-support-urls/401542)._
