Remote SIAD manager for Sia Cluster
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
certificates
config
deploy
lib
logs
tools/release
.gitignore
LICENSE
README.md
VERSION
package.json
run.js
sia-node.bat
sia-node.js

README.md

Sia Node 0.9.2

http://aspectron.com/#SiaCluster

dependencies Status license:mit

Sia Host (siad) monitoring utility for use with Sia Cluster

siad must be running on the local computer where Sia Node interface is deployed.

Setup

Download binaries from GitHub located here: https://github.com/aspectron/sia-cluster/releases

Setup Sia Node

  • Download & Extract sia-node-vX-platform.zip
  • Windows: run `sia-node-vX-platform/bin/setup.bat"
  • Linux & Darwin: run `sia-node-vX-platform/bin/setup.sh"

You will need to specify:

  • auth - created by Sia Cluster setup
  • address/ip - of Sia Cluster server (default is 127.0.0.1)
  • path - to Sia data folder (containing host, consensus etc.); If running Sia-UI, setup script will attempt to locate this folder automatically in your APPDATA. If running siad, this should be the folder where siad resides.

You can hit ENTER to get defaults that can later be changed in config/sia-node.local.conf

Once complete, you can start Sia Node:

  • Windows: bin/sia-node.bat or bin/sia-node-service.bat / Linux & Darwin: bin/sia-node.sh or bin/sia-node-service.sh

Custom Configuration

You need to configure following settings in your config/sia-node.local.conf:

{
    // instance identifier - if not set, defaults to hostname
    identifier : "<instance-name>",

    // rpc server IP and auth string that 
    // matches your Sia Cluster deployment
    rpc : {
        address : "<sia-cluster-ip>:<port>",
        auth : "<unique-auth-hex-string>"
    }
}

Deploying on Ubuntu

Full installation script:

cd ~
wget https://nodejs.org/dist/v6.2.2/node-v6.2.2-linux-x64.tar.xz
tar xf node-v6.2.2-linux-x64.tar.xz
ln -s node-v6.2.2-linux-x64 node
echo -e "\n\nPATH=\"\$HOME/node/bin:\$PATH\"\n\n" >> ~/.profile
source ~/.profile
git clone https://github.com/aspectron/sia-node
cd sia-node
npm install
node sia-node

Deploying on Windows

For windows, download and install:

Run the following from command line:

git clone https://github.com/aspectron/sia-node
cd sia-node
npm install
node sia-node
  • Add a shortcut to sia-node.bat to Startup folder to launch at startup
    • Press Win+R keys together
    • type: shell:Startup
    • Add shortcut to sia-node.bat (you can drag it with right mouse button key into Startup folder and then select "Create Shortcut")
    • To startup minimized, right click on the shortcut, select "Properties" menu and select "Run: Minimized".