News:

Are you new to Groestlcoin and have questions you are afraid to ask?
Check out the New Users board and post there.
Welcome to all newcomers.

Main Menu

How to setup audio2bip

Started by jackielove4u, December 10, 2021, 07:10:17 PM

Previous topic - Next topic

jackielove4u

The following were tested in Ubuntu 14.04 and Ubuntu 16.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
    • dd if=/dev/zero of=/swapfile bs=1M count=4096
    • mkswap /swapfile
    • swapon /swapfile
    • echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
    • sudo apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev libtool automake libevent-dev bsdmainutils -y
    • sudo apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev -y
    • sudo apt-get install libgmp-dev libsqlite3-dev python python3 net-tools zlib1g-dev gettext jq -y
    • curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    • sudo apt-get install nodejs -y
    • npm install --global yarn
    • git clone https://github.com/Groestlcoin/audio2bip39
    • cd audio2bip
    • screen
    • nano webpack.config.dev.js
    • Add under devServer:
      disableHostCheck: true,
    • npm install --force
    • npm start
    • ctrl+d and ctrl+a
    • cd ..
    • sudo apt-get install software-properties-common
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install certbot python-certbot-nginx -y
    • certbot --nginx -d audio2bip39.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/audio2bip39.groestlcoin.org/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/live/audio2bip39.groestlcoin.org/privkey.pem;
         
          server_name audio2bip39.groestlcoin.org;

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

          location / {
              proxy_pass http://localhost:8080;
              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;
          }
      }
    • Crtl+o enter, ctrl X
    • service nginx restart