mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
Add torrc in production README
This commit is contained in:
parent
b9d9875e98
commit
ca9ee0e6ae
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user