summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-08-19 07:42:28 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-08-19 07:42:28 -0400
commit7cae7f6a9b2efc0dc798f015aceab8942140fba5 (patch)
tree365006d5e2513fb8630dc6faef7b54a1bfda5ef7
parent631e7ca893b82d911d2bd558d248f4c83e5ead63 (diff)
tor update
-rw-r--r--tor.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/tor.html b/tor.html
index 6711d5c..87c34ac 100644
--- a/tor.html
+++ b/tor.html
@@ -83,6 +83,15 @@ HiddenServicePort 80 127.0.0.1:80</code></pre>
Now we are almost done, all we have to do is enable the site and reload nginx which, is also covered in <a href="nginx.html#enable">the webserver tutorial</a>.
</p>
+ <h3>Advertise your onion service</h3>
+
+ <p>You can add the Onion-Location header to your normal website to advertise your onion service to Tor users. On your regular site's nginx config, add the following line:</p>
+ <pre><code>server {
+ ...
+ add_header Onion-Location http://<strong>your-onion-address</strong>.onion$request_uri;
+}</code></pre>
+ <p>After doing this and reloading nginx, when visiting your regular site via Tor, you should see a ".onion available" button on the address bar, which should take you to the onion service.</p>
+
<h3>Update regularly!</h3>
<p>Make sure to update Tor on a regular basis by running:</p>