Ruzihm / coin-chance

An open source crypto currency play-and-invest gambling site
GNU Affero General Public License v3.0
35 stars 23 forks source link

coin-chance

An open source crypto currency play-and-invest gambling site

Requirements

Installation instructions

  1. Unpack source to any empty directory.
  2. Modify config.js (Details coming soon)
  3. Setup service user: $ useradd -m -s /bin/bash coinchance
  4. Configure secret values in /home/coinchance/.bash_profile :

    # /home/coinchance/.bash_profile 
    export COIN_CHANCE_CONNSTR=mongodb://localhost/test 
    export COIN_CHANCE_SSLKEY=/path/to/ssl.key  
    export COIN_CHANCE_SSLCERT=/path/to/ssl.crt 
    export COIN_CHANCE_COOKIESECRET=my_cookie_secret 
    export COIN_CHANCE_RPCPORT=18332 
    export COIN_CHANCE_RPCHOST=localhost 
    export COIN_CHANCE_RPCUSER=user 
    export COIN_CHANCE_RPCPASSWORD=password
  5. Keep configuration private to service user: $ chmod 700 /home/coinchance/.bashrc

Configuration instructions

Modify config.js to configure site. All below variables must be present unless otherwise specified. Configuration file format will be changed with the 1.0.0 version (whenever that comes out).

The below options should be changed carefully. config.js is covered by AGPL and must be considered sharable

Usage instructions

Donate!