bitcoind: add rpc user option 'passwordHMACFromFile'

This allows adding additional rpc users without the need for
user-specific code in preStart.
This commit is contained in:
Erik Arvstedt
2020-08-26 21:15:33 +02:00
parent 59434e79f0
commit 876cfadf1a
2 changed files with 25 additions and 16 deletions

View File

@@ -77,13 +77,11 @@ in {
rpcthreads = 16;
rpc.users.privileged = {
name = "bitcoinrpc";
# Placeholder to be sed'd out by bitcoind preStart
passwordHMAC = "bitcoin-HMAC-privileged";
passwordHMACFromFile = true;
};
rpc.users.public = {
name = "publicrpc";
# Placeholder to be sed'd out by bitcoind preStart
passwordHMAC = "bitcoin-HMAC-public";
passwordHMACFromFile = true;
rpcwhitelist = [
"echo"
"getinfo"