将 VB 迁移到 Discourse (在 TOR 网络下)

你好。Sharma。
我也想要相同的功能。

  1. 我在 Docker 上安装了 Discourse(标准安装)。

  2. 将 web.onion.template.yml 追加到 containers 目录下的 app.yml 中。

在 web.ssl.template.yml 之前。

设置 DISCOURSE_ONION 环境变量为 *********.onion 并重建应用程序。

  1. 构建后,进入 app(./launcher enter app),然后运行 sudo apt-get upgrade & sudo apt-get install nano & sudo apt-get install tor。

  2. 编辑 /etc/tor/torrc 并取消注释 hidden service dir 和 port。

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80

  1. 运行 tor。
  • <systemctl restart tor> 不起作用。

  • 我检查了 tor.service 文件,它看起来像运行 /bin/true 文件。

  1. 检查 /var/lib/tor/hidden_service/hostname 并获取 .onion 地址。

  2. 关闭 tor。

  3. 编辑 onion.conf 并将 ***************.onion 替换为新的 onion 地址。

  4. 再次运行 tor。

  5. 尝试连接 .onion 地址。原始的 https url 工作正常,但 .onion 地址出现未找到错误。