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