Skip to content

Tor, network, and testnet

This guide covers advanced Tor and Bitcoin network settings.

All commands are to be copy and pasted into the terminal of your Dojo, then press ENTER.

By default, Dojo connects to Tor without bridges.

If your network blocks Tor access, you can enable Tor bridges.

Open Tor config:

Terminal window
cd ~/dojo-app/docker/my-dojo/conf/
nano docker-tor.conf

Set:

Terminal window
TOR_USE_BRIDGES=on
TOR_BRIDGE_TYPE=obfs4
TOR_BRIDGE_1="TypeBridgeLine1Here"
TOR_BRIDGE_2="TypeBridgeLine2Here"
TOR_BRIDGE_3="TypeBridgeLine3Here"

You can also use:

Terminal window
TOR_BRIDGE_TYPE=snowflake

Then apply changes:

Terminal window
cd ~/dojo-app/docker/my-dojo
./dojo.sh upgrade

Bridge lines can be requested from:

This must be configured before first installation.

Open common config template:

Terminal window
cd ~/dojo-app/docker/my-dojo/conf/
nano docker-common.conf.tpl

Set:

Terminal window
COMMON_BTC_NETWORK=testnet

Then install:

Terminal window
cd ~/dojo-app/docker/my-dojo
./dojo.sh install

Important notes:

  • Do not change COMMON_BTC_NETWORK on an already running installation.
  • Switching from mainnet to testnet (or testnet to mainnet) requires a fresh install.