Author Topic: How to setup Groestlcoin Core Config Generator  (Read 157 times)

Offline jackielove4u

  • Administrator
  • Sr. Member
  • *****
  • Posts: 378
  • Groestlcoin
    • View Profile
How to setup Groestlcoin Core Config Generator
« on: June 03, 2019, 06:28:41 pm »
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.
    • curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
    • sudo apt-get install -y nodejs
    • git clone https://github.com/Groestlcoin/groestlcoin-core-config-generator
    • cd groestlcoin-core-config-generator
    • npm install
    • screen
    • npm start
    • Crtl+A, ctrl+D
    • cd ..
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install certbot
    • certbot certonly --standalone -d config.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/config.groestlcoin.org/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/live/config.groestlcoin.org/privkey.pem;
         
          server_name config.groestlcoin.org;

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

          location / {
              proxy_pass http://localhost:3000;
              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
« Last Edit: June 03, 2019, 06:57:28 pm by jackielove4u »

 

anything