Moving bitcoin to build role

This commit is contained in:
2024-02-09 19:11:46 -06:00
parent aa68070871
commit 6831ae2cbd
13 changed files with 111 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -ex
# Generate bitcoin.conf
btc_init
# Default / no argument invocation listens for RPC commands and has to accept non-localhost because of
# Docker port proxying or Docker private networking.
if [ $# -eq 0 ]; then
# If IPv6 is in the container do both:
#set -- '-rpcbind=[::]:8332' '-rpcallowip=::/0' '-rpcallowip=0.0.0.0/0'
set -- '-rpcbind=:8332' '-rpcallowip=0.0.0.0/0'
fi
exec bitcoind "$@"