init
This commit is contained in:
commit
812bd23211
4
filestorage/index.php
Normal file
4
filestorage/index.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
|
||||
echo 'sup';
|
||||
1
filestorage/run-filestorage.sh
Normal file
1
filestorage/run-filestorage.sh
Normal file
@ -0,0 +1 @@
|
||||
php -S 0.0.0.0:1488
|
||||
37
filestorage/upload.php
Normal file
37
filestorage/upload.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
ini_set('upload_max_filesize', '1000M');
|
||||
ini_set('post_max_size', '1000M');
|
||||
|
||||
|
||||
$target_dir = "./";
|
||||
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
|
||||
$uploadOk = 1;
|
||||
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
|
||||
|
||||
// Check if file already exists
|
||||
if (file_exists($target_file)) {
|
||||
echo "Sorry, file already exists.";
|
||||
$uploadOk = 0;
|
||||
}
|
||||
// Check file size
|
||||
if ($_FILES["fileToUpload"]["size"] > 200000000) {
|
||||
echo "Sorry, your file is too large.";
|
||||
$uploadOk = 0;
|
||||
}
|
||||
// Allow certain file formats
|
||||
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
|
||||
&& $imageFileType != "gif" ) {
|
||||
// echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
|
||||
// $uploadOk = 0;
|
||||
}
|
||||
// Check if $uploadOk is set to 0 by an error
|
||||
if ($uploadOk == 0) {
|
||||
echo "Sorry, your file was not uploaded.";
|
||||
} else {
|
||||
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
|
||||
echo "OK";
|
||||
//echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
|
||||
} else {
|
||||
echo "Sorry, there was an error uploading your file.";
|
||||
}
|
||||
}
|
||||
2
run_scripts/run-bitcoind-full.sh
Executable file
2
run_scripts/run-bitcoind-full.sh
Executable file
@ -0,0 +1,2 @@
|
||||
cd "$(dirname "$0")"
|
||||
./bin/bitcoind -datadir=./datadir -rpcuser=uuuu -rpcpassword=pppp -rpcbind=0.0.0.0 -txindex --zmqpubrawblock=tcp://111.222.333.444:28332 --zmqpubrawtx=tcp://111.222.333.444:28333 -rpcallowip=0.0.0.0/0 -server=1 -deprecatedrpc=accounts
|
||||
2
run_scripts/run-bitcoind.sh
Executable file
2
run_scripts/run-bitcoind.sh
Executable file
@ -0,0 +1,2 @@
|
||||
cd "$(dirname "$0")"
|
||||
./bitcoin-0.19.1/bin/bitcoind -txindex=1 -datadir=./bitcoin-0.19.1/datadir -rpcuser=uuuu -rpcpassword=pppp -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -server=1
|
||||
22
run_scripts/run-compaction.sh
Executable file
22
run_scripts/run-compaction.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
export COIN=BitcoinSegwit
|
||||
export DAEMON_URL=uuuu:pppp@127.0.0.1
|
||||
export HOST=199.217.117.27
|
||||
export TCP_PORT=50001
|
||||
export SSL_PORT=443
|
||||
export ALLOW_ROOT=1
|
||||
export MAX_SESSIONS=10000
|
||||
export MAX_SEND=5000000
|
||||
export COST_SOFT_LIMIT=0
|
||||
export COST_HARD_LIMIT=0
|
||||
export REQUEST_SLEEP=250
|
||||
export SSL_CERTFILE=/home/user/server.crt
|
||||
export SSL_KEYFILE=/home/user/server.key
|
||||
export DB_DIRECTORY=/home/user/electrum_datadir/
|
||||
|
||||
export REQUEST_SLEEP=1000
|
||||
export INITIAL_CONCURRENT=100
|
||||
export REQUEST_TIMEOUT=30
|
||||
export SESSION_TIMEOUT=30
|
||||
|
||||
electrumx_compact_history
|
||||
1
run_scripts/run-electrs.sh
Normal file
1
run_scripts/run-electrs.sh
Normal file
@ -0,0 +1 @@
|
||||
./target/release/electrs -vvvv --timestamp --db-dir ./db --electrum-rpc-addr="0.0.0.0:60001" --daemon-dir=/root/bitcoin-0.17.1/datadir
|
||||
23
run_scripts/run-electrum.sh
Executable file
23
run_scripts/run-electrum.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
export COIN=BitcoinSegwit
|
||||
export DAEMON_URL=uuuu:pppp@127.0.0.1
|
||||
export HOST=199.217.117.27
|
||||
export TCP_PORT=50001
|
||||
export SSL_PORT=443
|
||||
export ALLOW_ROOT=1
|
||||
export MAX_SESSIONS=10000
|
||||
export MAX_SEND=5000000
|
||||
export COST_SOFT_LIMIT=0
|
||||
export COST_HARD_LIMIT=0
|
||||
export REQUEST_SLEEP=250
|
||||
export SSL_CERTFILE=/home/user/server.crt
|
||||
export SSL_KEYFILE=/home/user/server.key
|
||||
export DB_DIRECTORY=/home/user/electrum_datadir/
|
||||
|
||||
export REQUEST_SLEEP=1000
|
||||
export INITIAL_CONCURRENT=100
|
||||
export REQUEST_TIMEOUT=30
|
||||
export SESSION_TIMEOUT=30
|
||||
|
||||
electrumx_server
|
||||
|
||||
4
run_scripts/run-lnd.sh
Executable file
4
run_scripts/run-lnd.sh
Executable file
@ -0,0 +1,4 @@
|
||||
/home/user/gocode/bin/lnd --bitcoin.active --bitcoin.mainnet --debuglevel=info --bitcoin.node=bitcoind --bitcoind.rpcuser=uuuu --bitcoind.rpcpass=pppp --bitcoind.zmqpubrawblock=tcp://199.217.117.27:28332 --bitcoind.zmqpubrawtx=tcp://199.217.117.27:28333 --rpclisten=0.0.0.0 --restlisten=0.0.0.0:8080 --bitcoin.defaultchanconfs=1 --bitcoin.defaultremotedelay=6 --lnddir=/home/user/.lnd --datadir=/home/user/.lnd/data
|
||||
|
||||
#--externalip=111.222.333.444
|
||||
|
||||
Loading…
Reference in New Issue
Block a user