# 如何在 Tor 上使用 .onion 域名创建镜像

**URL:** https://meta.discourse.org/t/how-to-create-mirror-in-tor-with-onion-domain/220292
**Category:** Self-hosting
**Created:** [2022 年3 月 7 日 14:51 UTC](https://meta.discourse.org/t/how-to-create-mirror-in-tor-with-onion-domain/220292 "2022-03-07T14:51:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### 作者： ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### 发布日期： [2022 年3 月 7 日 14:55 UTC](https://meta.discourse.org/t/how-to-create-mirror-in-tor-with-onion-domain/220292/2 "2022-03-07T14:55:03Z")

</div>

有一个用于 Discourse 的 TOR 模板：

> <https://github.com/discourse/discourse_docker/blob/main/templates/web.onion.template.yml>

它最后一次更新是在 6 年前，所以我不能确定它是否仍然有效，但如果它仍然有效，这应该能让你开始。请阅读模板以了解其工作原理。

你需要在你的 app.yml 中包含该模板并定义 `DISCOURSE_ONION` 链接（即你的 .onion 地址）。

进一步讨论：[Template for serving through an .onion address with Docker](https://meta.discourse.org/t/template-for-serving-through-an-onion-address-with-docker/41536?u=itsbhanusharma)

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-mirror-in-tor-with-onion-domain/220292)._
