{"repo":"nicdercole/Tor-Lighttpd-Onion","free":true,"listed":false,"github":"https://github.com/nicdercole/Tor-Lighttpd-Onion","clone":"git clone https://github.com/nicdercole/Tor-Lighttpd-Onion.git","description":"This project provides a setup using Docker to create a service running Tor and a lighttpd web server. The .onion address remains persistent between container restarts. Additionally, the site is also published on the regular web.","language":"HTML","stars":16,"topics":["privacy","tor","webserver","website"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Tor-Lighttpd-Onion This project provides a setup using Docker to create a service running Tor and a lighttpd web server. The .onion address remains persistent between container restarts. Project Structure The project directory should look like this: 1. Create the docker-compose.yml File Here is an example of a docker-compose.yml file: 2. Configure the torrc File In this setup, the torrc file will be very very very simple. The main configuration is managed via the command section in the Docker Compose file. The torrc file will have only basic settings, with other settings dynamically added by the container: 3. Create the hidden service Directory The hidden service directory will contain the hostname file, which will be automatically generated by Tor during the first execution. This file will be reused on subsequent container starts, ensuring the .onion address remains the same. It's important to map this directory as a volume in Docker Compose to persist the .onion address across container restarts. 4. Configure lighttpd The html directory will contain the website you want to serve. Simply add an index.html file with the desired content for example. 5. Start the Service Now you can start the service with: On the first run, the Tor container will generate a new .onion address and save it in the hostname file. On subsequent runs, the same address will be reused. 6. Access the .onion Address After starting, you can view the .onion address in the tor/hidden service/hostname file. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nicdercole","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nicdercole/Tor-Lighttpd-Onion/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}