committed by
GitHub
1 changed files with 20 additions and 13 deletions
@ -1,24 +1,31 @@ |
|||||
### Setup of https://explorer.btc21.org on Ubuntu 16.04 |
### Setup of https://explorer.btc21.org on Ubuntu 20.04 |
||||
|
|
||||
|
# update and install packages |
||||
apt update |
apt update |
||||
apt upgrade |
apt upgrade |
||||
apt install git python-software-properties software-properties-common nginx gcc g++ make |
apt install git nginx gcc g++ make npm certbot python3-certbot-nginx |
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash |
npm install -g npm |
||||
nvm install 10.14.1 ## LTS release of NodeJS as of 2018-11-29, via https://nodejs.org/en/ |
npm install -g pm2 |
||||
npm install pm2 --global |
|
||||
add-apt-repository ppa:certbot/certbot |
|
||||
apt update |
|
||||
apt upgrade |
|
||||
apt install python-certbot-nginx |
|
||||
|
|
||||
Copy content from [./explorer.btc21.org.conf](./explorer.btc21.org.conf) into `/etc/nginx/sites-available/explorer.btc21.org.conf` |
# add user for btc-related stuff |
||||
|
adduser bitcoin # leave everything blank if you want |
||||
certbot --nginx -d explorer.btc21.org |
|
||||
|
# prep work for ssl certs |
||||
cd /etc/ssl/certs |
cd /etc/ssl/certs |
||||
openssl dhparam -out dhparam.pem 4096 |
openssl dhparam -out dhparam.pem 4096 |
||||
cd /home/bitcoin |
|
||||
|
# get nginx config |
||||
|
wget https://raw.githubusercontent.com/janoside/btc-rpc-explorer/master/docs/explorer.btc21.org.conf |
||||
|
mv explorer.btc21.org.conf /etc/nginx/sites-available/ |
||||
|
|
||||
|
# get source, npm install |
||||
git clone https://github.com/janoside/btc-rpc-explorer.git |
git clone https://github.com/janoside/btc-rpc-explorer.git |
||||
cd /home/bitcoin/btc-rpc-explorer |
cd /home/bitcoin/btc-rpc-explorer |
||||
npm install |
npm install |
||||
npm run build |
npm run build |
||||
|
|
||||
|
# startup via pm2 |
||||
pm2 start bin/www --name "btc-rpc-explorer" |
pm2 start bin/www --name "btc-rpc-explorer" |
||||
|
|
||||
|
# get letsencrypt cert |
||||
|
certbot --nginx -d explorer.btc21.org |
||||
|
Loading…
Reference in new issue