|
@ -2,10 +2,9 @@ |
|
|
|
|
|
|
|
|
apt update |
|
|
apt update |
|
|
apt upgrade |
|
|
apt upgrade |
|
|
apt install git python-software-properties |
|
|
apt install git python-software-properties software-properties-common nginx |
|
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - |
|
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - |
|
|
npm install pm2 --global |
|
|
npm install pm2 --global |
|
|
apt install nginx |
|
|
|
|
|
add-apt-repository ppa:certbot/certbot |
|
|
add-apt-repository ppa:certbot/certbot |
|
|
apt update |
|
|
apt update |
|
|
apt upgrade |
|
|
apt upgrade |
|
@ -16,5 +15,8 @@ Copy content from [./btc-explorer.com.conf](./btc-explorer.com.conf) into `/etc/ |
|
|
certbot --nginx -d btc-explorer.com |
|
|
certbot --nginx -d btc-explorer.com |
|
|
cd /etc/ssl/certs |
|
|
cd /etc/ssl/certs |
|
|
openssl dhparam -out dhparam.pem 4096 |
|
|
openssl dhparam -out dhparam.pem 4096 |
|
|
|
|
|
cd /home/bitcoin |
|
|
|
|
|
git clone https://github.com/janoside/btc-rpc-explorer.git |
|
|
cd /home/bitcoin/btc-rpc-explorer |
|
|
cd /home/bitcoin/btc-rpc-explorer |
|
|
|
|
|
npm install |
|
|
pm2 start bin/www --name "btc-rpc-explorer" |
|
|
pm2 start bin/www --name "btc-rpc-explorer" |
|
|