Remove LND Connect Remote (adding VPN later)
This commit is contained in:
parent
12408134a4
commit
19624cd3a2
|
@ -25,7 +25,13 @@ done
|
||||||
echo "QuickSync Complete! Enabling Uploading."
|
echo "QuickSync Complete! Enabling Uploading."
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [ -f $QUICKSYNC_BANDWIDTH_FILE ]; then
|
if [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
|
||||||
|
echo "QuickSync not complete, stopping upload"
|
||||||
|
transmission-remote -u 0
|
||||||
|
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
|
||||||
|
echo "Bitcoin not synced, stopping upload"
|
||||||
|
transmission-remote -u 0
|
||||||
|
elif [ -f $QUICKSYNC_BANDWIDTH_FILE ]; then
|
||||||
RATE=$(cat $QUICKSYNC_BANDWIDTH_FILE)
|
RATE=$(cat $QUICKSYNC_BANDWIDTH_FILE)
|
||||||
echo "Setting upload rate to $RATE kbps"
|
echo "Setting upload rate to $RATE kbps"
|
||||||
transmission-remote -u $RATE
|
transmission-remote -u $RATE
|
||||||
|
@ -33,7 +39,7 @@ while true; do
|
||||||
echo "Setting upload rate to unlimited"
|
echo "Setting upload rate to unlimited"
|
||||||
transmission-remote -U
|
transmission-remote -U
|
||||||
fi
|
fi
|
||||||
sleep 1d
|
sleep 1h
|
||||||
done
|
done
|
||||||
|
|
||||||
# We should not exit
|
# We should not exit
|
||||||
|
|
|
@ -18,19 +18,19 @@ while true; do
|
||||||
rm -rf /tmp/mynode_lndconnect/*
|
rm -rf /tmp/mynode_lndconnect/*
|
||||||
|
|
||||||
# Generate QR Codes
|
# Generate QR Codes
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet
|
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet
|
||||||
cp -f lndconnect-qr.png lndconnect_remote_grpc.png
|
#cp -f lndconnect-qr.png lndconnect_remote_grpc.png
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip
|
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip
|
||||||
cp -f lndconnect-qr.png lndconnect_local_grpc.png
|
cp -f lndconnect-qr.png lndconnect_local_grpc.png
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet -p 10080
|
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet -p 10080
|
||||||
cp -f lndconnect-qr.png lndconnect_remote_rest.png
|
#cp -f lndconnect-qr.png lndconnect_remote_rest.png
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip -p 10080
|
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip -p 10080
|
||||||
cp -f lndconnect-qr.png lndconnect_local_rest.png
|
cp -f lndconnect-qr.png lndconnect_local_rest.png
|
||||||
|
|
||||||
# Generate Text Files
|
# Generate Text Files
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet > lndconnect_remote_grpc.txt
|
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet > lndconnect_remote_grpc.txt
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip > lndconnect_local_grpc.txt
|
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip > lndconnect_local_grpc.txt
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet -p 10080 > lndconnect_remote_rest.txt
|
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet -p 10080 > lndconnect_remote_rest.txt
|
||||||
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip -p 10080 > lndconnect_local_rest.txt
|
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip -p 10080 > lndconnect_local_rest.txt
|
||||||
|
|
||||||
echo "Done! Waiting until LND changes, then regen lndconnect codes!"
|
echo "Done! Waiting until LND changes, then regen lndconnect codes!"
|
||||||
|
|
|
@ -30,10 +30,8 @@
|
||||||
<div class="main_header">LND Connect</div>
|
<div class="main_header">LND Connect</div>
|
||||||
<div id="lndconnect_tabs" style="width: 800px;">
|
<div id="lndconnect_tabs" style="width: 800px;">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#tabs-1">Local gRPC</a></li>
|
<li><a href="#tabs-1">gRPC</a></li>
|
||||||
<li><a href="#tabs-2">Local REST</a></li>
|
<li><a href="#tabs-2">REST</a></li>
|
||||||
<li><a href="#tabs-3">Remote gRPC</a></li>
|
|
||||||
<li><a href="#tabs-4">Remote REST</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<div id="tabs-1">
|
<div id="tabs-1">
|
||||||
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_grpc_img}}"/>
|
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_grpc_img}}"/>
|
||||||
|
@ -43,14 +41,6 @@
|
||||||
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_rest_img}}"/>
|
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_rest_img}}"/>
|
||||||
<p>{{ lndconnect_local_rest_text }}</p>
|
<p>{{ lndconnect_local_rest_text }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="tabs-3">
|
|
||||||
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_remote_grpc_img}}"/>
|
|
||||||
<p>{{ lndconnect_remote_grpc_text }}</p>
|
|
||||||
</div>
|
|
||||||
<div id="tabs-4">
|
|
||||||
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_remote_rest_img}}"/>
|
|
||||||
<p>{{ lndconnect_remote_rest_text }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user