Adds flags for enabling authentication
This commit is contained in:
parent
968074b6fd
commit
e4317a8383
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,7 @@ ENV PRUNE 953
|
|||
ENV USER nan
|
||||
ENV PASS nan
|
||||
ENV ENABLE_RPC 0
|
||||
ENV ENABLE_AUTH 1
|
||||
|
||||
EXPOSE 8333
|
||||
EXPOSE 8332
|
||||
|
|
|
@ -2,7 +2,12 @@
|
|||
|
||||
if [ $ENABLE_RPC == 1 ]
|
||||
then
|
||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rest=1 -rpcallowip=0.0.0.0 -rpcuser="$USER" -rpcpassword="$PASS" -rpcbind=0.0.0.0:8332
|
||||
if [ $ENABLE_AUTH == 1]
|
||||
then
|
||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcuser="$USER" -rpcpassword="$PASS" -rpcbind=0.0.0.0:8332
|
||||
else
|
||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcbind=0.0.0.0:8332
|
||||
fi
|
||||
else
|
||||
/app/bitcoind -datadir=/data -txindex=$TXINDEX -prune=$PRUNE
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue