[bisq-network/bisq-explorer] Restructure BSQ explorer as system service for easy installation (#15)

Devin Bileck notifications at github.com
Sun Jan 5 08:45:36 UTC 2020


devinbileck commented on this pull request.



>  
-```
-sudo apt-get install software-properties-common
-sudo add-apt-repository universe
-sudo add-apt-repository ppa:certbot/certbot
-sudo apt-get update
-sudo apt-get install python-certbot-nginx
-sudo certbot --nginx
+```bash
+sudo apt-get update -q
+sudo apt-get install -q -y nginx-core python-certbot-nginx
+sudo certbot --nginx --agree-tos --non-interactive -m ssl at example.com -d explorer.example.com

Perhaps should first allow http/https traffic through the firewall before installing the certificate, otherwise the authorization process will fail (timeout). Since after following the seednode configuration only SSH/Bitcoin will be allowed.

>  
-Copy Bisq seednode db directory contents to `$EXPLORER_HOME`
-```
-mkdir ${EXPLORER_HOME}/data
-cp -r ${DATADIR}/* ${EXPLORER_HOME}/data
+Install the nginx.conf from this repository, substituting explorer.example.com for your server hostname
+```bash
+sudo wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/bisq-network/bisq-explorer/master/nginx.conf
+sudo sed -i -e '!__HOSTNAME__!explorer.example.com!g' /etc/nginx/nginx.conf

I ran into an error when running this command:
`sed: -e expression #1, char 2: unknown command: `_'`

So instead i used:
`sudo sed -i -e 's/__HOSTNAME__/explorer.example.com/g' /etc/nginx/nginx.conf`

>  		include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
 		ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
 
-		server_name explorer.bisq.network; # managed by Certbot
+		server_name __HOSTNAME__; # managed by Certbot
 
 		index index.html;
 		root /home/bisqweb/bisq-explorer/www;

```suggestion
		root /bisq/bisq-explorer/www;
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-explorer/pull/15#pullrequestreview-338385394
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200105/5001696a/attachment-0001.html>


More information about the bisq-github mailing list