Skip to content

Commit

Permalink
Docker: Add instructions for connecting to Tor
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalturtle committed Jul 25, 2023
1 parent 258d7b6 commit f7d6bd5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,20 @@ You can open an `sh` shell using `docker exec`:
Then begin issuing whatever `teos-cli` commands you want.

Secondly, you can try using teos-cli remotely following the instructions in [the main README](https://github.com/talaia-labs/rust-teos/blob/master/README.md#running-teos-cli-remotely).

### How to set up a Tor hidden service pointing to the Docker container:

Notice in the above section where we cover how to pass in environment variables to the running Docker instance, the Tor options are currently not included as an option. That's because these instructions assume that users will likely be setting up Tor in another container.

Whereever Tor is running, a user can follow [these instructions](https://community.torproject.org/onion-services/setup/) for setting up a hidden service manually.

For instance, if you're running `teosd` on the same machine (similar to the instructions above), you can create a hidden service to hide the IP of the Teosd API (listening on port 9814) by editing your `torrc` file with the below options (but more likely you'll need to change `127.0.0.1` to the address where your `teosd` Docker container is running):

```
HiddenServiceDir /var/lib/tor/teosd
HiddenServicePort 9814 127.0.0.1:9814
```

Then restart Tor.

If all works correctly, the hidden service public key will be located in the `HiddenServiceDir` you set above, i.e. `/var/lib/tor/teosd` in the file `hostname`.

0 comments on commit f7d6bd5

Please sign in to comment.