Skip to content

Instantly share code, notes, and snippets.

View EnchanterIO's full-sized avatar

Lukáš Lukáč EnchanterIO

View GitHub Profile
@EnchanterIO
EnchanterIO / gsn-setup-relayer.md
Last active August 23, 2019 08:11 — forked from spalladino/setup-relayer.md
Manual script for setting up a GSN relayer

Manual setup for a GSN relayer

Install nginx and certbot

sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install nginx software-properties-common certbot python-certbot-nginx
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh