docs/configuration: improve section `Remote bitcoind`

This commit is contained in:
Erik Arvstedt 2022-08-22 14:57:40 +02:00
parent af115d746b
commit 3a65dc0dc9
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 7 additions and 10 deletions

View File

@ -214,18 +214,15 @@ services.bitcoind = {
};
```
If a `secure-node.nix` or `tor-enable.nix` preset is imported in your
configuration or a `tor.enforce` option is explicitly enabled, you also need to
allow remote connections for **every** service which needs to connect to the
remote bitcoind:
```
systemd.services.<service>.serviceConfig = {
IPAddressAllow = [ ${services.bitcoind.rpc.address} ];
};
For each service that connects to bitcoind and has option
`services.<service>.tor.enforce` enabled (either explicitly or by importing
`secure-node.nix` or `enable-tor.nix`), you need to
allow the remote bitcoind connection:
```nix
systemd.services.<service>.serviceConfig.IPAddressAllow = [ ${services.bitcoind.rpc.address} ];
```
> Please note that configuration above applies only if the remote bitcoind **is
> The above configuration is only required if the remote bitcoind **is
> not** accessed via Tor.