Add torrc in production README

This commit is contained in:
wiz 2020-05-26 23:13:57 +09:00
parent b9d9875e98
commit ca9ee0e6ae
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -35,6 +35,31 @@ I recommend to build rust from latest source:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
### Tor
Install tor, add Bitcoin to _tor group:
```
pkg install -y tor
pw user mod bitcoin -G _tor
```
Then configure `/usr/local/etc/tor/torrc` as follows:
```
RunAsDaemon 1
SOCKSPort 9050
ControlPort 9051
Log notice syslog
CookieAuthentication 1
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1
HiddenServiceDir /var/db/tor/mempool
HiddenServicePort 80 127.0.0.1:81
HiddenServiceVersion 3
```
### Bitcoin
Build [Bitcoin Core](https://github.com/bitcoin/bitcoin) from source. Alternatively, install the OS packages: