summarylogtreecommitdiffstats
path: root/bitcoin.conf
diff options
context:
space:
mode:
authorTomZ2017-01-05 12:20:07 +0100
committerTomZ2017-01-05 12:20:07 +0100
commite0d23b50a5925a34cef7b36dd1fe2ebee9ae8273 (patch)
treed1f2a0e2c6484e4f27b0cfa186507294054c5b78 /bitcoin.conf
downloadaur-e0d23b50a5925a34cef7b36dd1fe2ebee9ae8273.tar.gz
Initial version
Diffstat (limited to 'bitcoin.conf')
-rw-r--r--bitcoin.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/bitcoin.conf b/bitcoin.conf
new file mode 100644
index 000000000000..8d6e980515c3
--- /dev/null
+++ b/bitcoin.conf
@@ -0,0 +1,31 @@
+# See a longer example at; /usr/share/doc/bitcoin/examples/bitcoin.conf
+
+# Defaults that are also passed in by systemd
+datadir=/var/lib/bitcoind
+pid=/var/lib/bitcoind/bitcoind.pid
+disablewallet=1
+
+# make the cookie go to /etc/bitcoin
+rpccookiefile=/etc/bitcoin/.cookie
+# make sure the cookie is readable by users able to read /etc/bitcoin
+sysperms=1
+
+# --rpcauth--
+# There additionally is the config option "rpcauth" to allow
+# multiple different users to use different credentials for login.
+#
+# The config option comes in the format:
+# rpcauth=USERNAME:SALT$HASH
+#
+# Where:
+# 1-USERNAME is desired username. Name doesn't have to be unique.
+# 2-SALT is the salt for the HMAC_SHA256 function
+# 3-HASH is a hex string that is the result of the HMAC_SHA256
+# function on the user's secret password plus the SALT as the key.
+#
+# A "canonical" password generating python script has been supplied
+# at "/etc/bitcoin/rpcuser.py". From the client-side, one connects
+# using the standard -rpcuser/-rpcpassword options.
+#
+# How to create an RPC user login credential.
+# $ python2 /etc/bitcoin/rpcuser.py <username>