News:

Be careful when downloading software.
Make sure to download only from official sources:
Official Groestlcoin Clients for Win, Mac, Linux

Main Menu

How to setup Build BIP39

Started by jackielove4u, December 01, 2020, 01:52:48 PM

Previous topic - Next topic

jackielove4u

The following were tested in Ubuntu 18.04, some dependencies can be different in other distros.

    • aptitude update -y && aptitude upgrade -y && apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y
    • apt install curl -y
    • curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    • sudo apt-get install nodejs -y
    • git clone https://github.com/Groestlcoin/build-bip39
    • cd build-bip39
    • npm install
    • npm run buildProd
    • screen
    • npm run serveProd
    • ctrl+d and ctrl+a
    • cd ..
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install certbot python-certbot-nginx
    • certbot certonly --nginx -d build-bip39.groestlcoin.org
    • crontab -e
    • Add end of file:
      15 3 * * * /usr/bin/certbot renew --quiet
    • Crtl+o enter, ctrl X
    • apt-get install nginx
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      server {
          listen 80;
          listen 443 ssl;
          ssl_certificate /etc/letsencrypt/live/build-bip39.groestlcoin.org/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/live/build-bip39.groestlcoin.org/privkey.pem;
         
          server_name build-bip39.groestlcoin.org;

          # force https-redirects
          if ($scheme = http) {
              return 301 https://build-bip39.groestlcoin.org$request_uri;
          }

          location / {
              proxy_pass http://localhost:9000;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header Host $http_host;
              proxy_set_header X-NginX-Proxy true;

              # Enables WS support
              proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection "upgrade";
              proxy_redirect off;
          }
      }
    • service nginx restart