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:
parent
59434e79f0
commit
876cfadf1a
2 changed files with 25 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue