NewsCrawler.org

Container Onion Service: a container that publishes a website as a Tor onion service

Container Onion Service: a container that publishes a website as a Tor onion service
Image: Reddit

The project is a container image that runs a Tor onion service[1] as a proxy in front of an existing HTTP or HTTPS web application, which makes the site reachable over the Tor network. The image is built only for the amd64 architecture. The latest tag always points to the build with the newest version of Tor, and version tags such as 0.4.9.14 match Tor releases. The image is rebuilt periodically to pick up updates from the Debian base image.

To set it up, the user first generates a keypair[2] with the gen-service-keypair script, which outputs a hostname and keys. The container then needs WEB_FRONTEND_HOST, the address where the site can be reached from the container, and optionally WEB_FRONTEND_PORT, which defaults to 80. After the container starts, the TOR_ONION_HOSTNAME value is entered into Tor Browser. The demo setup regenerates its key on every restart, so it is not meant for real-world use.

Access can be limited to approved users through client authorization[3]. Each client gets its own keypair, and the client's public key is mounted into the authorized_clients directory. The client then enters the CLIENT_PRIVATE_KEY_BROWSER value in Tor Browser. The project is maintained by The Freedom of the Press Foundation and licensed under AGPL v3, and the Tor software inside the image is licensed under BSD-3-Clause.

Read the original github.comDiscussion

Sources

  • GitHub

    Container Onion Service: a rootless container that proxies a website as a hidden service on the Tor network (AGPLv3)

    16 comments

Published: First seen: Читать по-русски

Open as a page