[Video] Setting up a Tor onion site in under 10 minutes
2022 February 6
Setting up a basic Tor onion service is super easy! I'll show you how.
My background is Plant Onions! by Péhä, licensed CC BY 4.0.
Here are the steps:
Setting up Tor
- Install tor:
apt install tor
- Enable a hidden service in /etc/tor/torrc
- Restart tor:
systemctl restart tor
Your onion address should now be available at /var/lib/tor/hidden_service/hostname
Setting up nginx
- Install nginx:
apt install nginx
- In /etc/nginx.conf, increase
server_names_hash_bucket_size
to128
(or something else sufficiently large) - Restart nginx:
systemctl restart nginx
- Add a site config in nginx which listens on localhost:80 and has
server_name <your onion address>
- Reload your nginx config:
nginx -s reload
You should now be running an onion site! Go set it up :)