Commit c3bc00b8 authored by Freeman's avatar Freeman

Update README.md

parent a5dfb521
......@@ -28,22 +28,22 @@ First, when you create a new wallet with Electrum STAK, it is very important to
## Installation (built-in server)
__clone repo__
git clone https://github.com/acidsploit/pyxpub.git pyxpub
git clone https://lab.straks.co/freeman/straksgate.git straksgate
__setup environment__
cd pyxpub/
cd straksgate/
bash setup.sh
__set xpub key__
Copy your xpub key from an Electron Cash wallet and paste it in the key.list file.
Copy your xpub key from an Electum STAK wallet and paste it in the key.list file.
echo 'xpub...' > key.list
__run__
cd pyxpub/
cd straksgate/
bash pyxpub.sh
__access locally__
......@@ -57,53 +57,53 @@ __install nginx, uwsgi and uwsgi python plugin__
Follow your distribution's directions to install these packages.
__insall pyxpub in appropriate location__
__insall straksgate in appropriate location__
cd /srv/http/
git clone https://github.com/acidsploit/pyxpub.git pyxpub
git clone https://lab.straks.co/freeman/straksgate.git straksgate
mkdir /srv/http/public_html/
mv pyxpub/react/ public_html/
cd pyxpub/
mv straksgate/react/ public_html/
cd straksgate/
bash setup.sh
echo 'xpub...' > key.list
sudo chown http:http -R /srv/http/pyxpub
sudo chown http:http -R /srv/http/straksgate
__uWSGI config__
Create: /etc/uwsgi/pyxpub.ini
Create: /etc/uwsgi/straksgate.ini
[uwsgi]
socket = /run/uwsgi/%n.sock
processes = 4
chdir = /srv/http/pyxpub/
chdir = /srv/http/straksgate/
master = true
plugins = python
file = xpub.py
uid = http
gid = http
virtualenv = /srv/http/pyxpub/env/
virtualenv = /srv/http/straksgate/env/
__uWSGI start & enable at startup__
sudo systemctl start [email protected]pyxpub.service
sudo systemctl enable [email protected]pyxpub.service
sudo systemctl start [email protected]straksgate.service
sudo systemctl enable [email protected]straksgate.service
__setup nginx vhost to reverse proxy uWSGI__
Set up a vhost (preferably with ssl) with following locations and uwsgi_pass:
upstream _pyxpub {
server unix:/run/uwsgi/pyxpub.sock;
upstream _straksgate {
server unix:/run/uwsgi/straksgate.sock;
}
server {
server_name yourserver.com;
listen 80;
root /srv/http/pyxpub/public_html;
root /srv/http/straksgate/public_html;
rewrite ^/$ /react permanent;
......@@ -231,14 +231,14 @@ Fetch exchange rate or list supported currencies for specified source.
Options:
* source (cryptocompate, kraken, coinbase)
* source (coinmarketcap)
* currency
=> Returns exchange rate for requested source and currency
or
* source (cryptocompate, kraken, coinbase)
* source (coinmarketcap)
=> Returns array of supported currencies for specified source
......@@ -281,7 +281,7 @@ or
}
curl 'http://localhost:8080/api/rate?source=kraken&currency=EUR'
curl 'http://localhost:8080/api/rate?source=coinmarketcap&currency=EUR'
{
"currency": "EUR",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment