Skip to content

Commit 726c237

Browse files
committed
Add example onion to alt domains env var in tor guide
1 parent cd44f87 commit 726c237

File tree

1 file changed

+6
-0
lines changed
  • content/en/admin/optional

1 file changed

+6
-0
lines changed

content/en/admin/optional/tor.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ server {
148148
}
149149
```
150150

151+
Also update your `.env.production`:
152+
153+
```text
154+
ALTERNATE_DOMAINS=mastodon.qKnFwnNH2oH4QhQ7CoRf7HYj8wCwpDwsa8ohJmcPG9JodMZvVA6psKq7qKnFwnNH2oH4QhQ7CoRf7HYj8wCwpDwsa8ohJmcPG9JodMZvVA6psKq7.onion
155+
```
156+
151157
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.
152158

153159
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.

0 commit comments

Comments
 (0)