From 0c0a6dc5d4c0c87a3fc9adec7d5c97ff47da401b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sun, 23 Nov 2025 11:50:39 -0500 Subject: [PATCH] Add example onion to alt domains env var in tor guide --- content/en/admin/optional/tor.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/admin/optional/tor.md b/content/en/admin/optional/tor.md index 9706abad0..a89b61958 100644 --- a/content/en/admin/optional/tor.md +++ b/content/en/admin/optional/tor.md @@ -148,6 +148,12 @@ server { } ``` +Also update your `.env.production`: + +```text +ALTERNATE_DOMAINS=mastodon.qKnFwnNH2oH4QhQ7CoRf7HYj8wCwpDwsa8ohJmcPG9JodMZvVA6psKq7qKnFwnNH2oH4QhQ7CoRf7HYj8wCwpDwsa8ohJmcPG9JodMZvVA6psKq7.onion +``` + Replace the long hash provided here with your Tor domain located in the file at `/var/lib/tor/onion_service/hostname`. This should also be reflected in the `Onion-Location` header in the snippets file. Note that the onion hostname has been prefixed with “mastodon.”. Your Tor address acts as a wildcard domain. All subdomains will be routed through, and you can configure Nginx to respond to any subdomain you wish. If you do not wish to host any other services on your tor address you can omit the subdomain, or choose a different subdomain.