Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.71 KB

eth.md

File metadata and controls

61 lines (38 loc) · 1.71 KB

How to setup eth server for peatio

What do you need?

  • An instance with 4G of ram
  • at least 100 G of hard disk
  • Ubuntu 16.04

Install geth

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

Run geth

copy the geth service file to /etc/systemd/system/geth.service

sudo systemctl start geth
sudo systemctl enable geth

Install Nginx + fcgi

sudo apt install nginx -y fcgiwrap

copy default file to /etc/nginx/sites-enabled/default

sudo systemctl restart nginx

cgi files

copy the cgi files to /var/www/html/cgi-bin and update total.cgi with your username

sudo chown www-data:www-data -R /var/www/html/cgi-bin
sudo chmod +x /var/www/html/cgi-bin/*

Install filter service

copy total.js to /var/www

sudo chown www-data:www-data /var/www/total.js

don't forget to edit service.rb with your url

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs ruby-all-dev ruby
sudo gem install web3 -v 0.1.0
sudo gem install httparty

copy service.rb file to /home/ubuntu/

don't forget to update the username in filter.service copy filter.service file to /etc/systemd/system/filter.service

sudo systemctl start filter
sudo systemctl enable filter

You need to create at least one account and use it as a base account for withdrawals

Update config/currencies.yml with your base address

Add your ether server IP and your base account address Allow only peatio server to access ETH server on port 80