Coder Social home page Coder Social logo

cashshuffle's Introduction

License ReportCard Build

cashshuffle

A CashShuffle server implented in Go.

For more information on CashShuffle visit cashshuffle.com.

Technical specification and documentation are at github.com/cashshuffle/spec.

Install

go get -v github.com/cashshuffle/cashshuffle
cd $GOPATH/src/github.com/cashshuffle/cashshuffle
export GO111MODULE=on
make
make install

Usage

To start the server, just set the pool size and add your SSL cert and key.

cashshuffle -s 5 -c <cert> -k <key>

To start the server using LetsEncrypt to manage the cert.

# LetsEncrypt requires port 80 for negotiation.
# Therefore sudo is required.
sudo cashshuffle -s 5 -a <hostname>

You can use --help to view all the options.

Usage:
  cashshuffle [flags]

Flags:
  -a, --auto-cert string         register hostname with LetsEncrypt
  -b, --bind-ip string           IP address to bind to
  -c, --cert string              path to server.crt for TLS
  -d, --debug                    debug mode
  -h, --help                     help for cashshuffle
  -k, --key string               path to server.key for TLS
  -s, --pool-size int            pool size (default 5)
  -p, --port int                 server port (default 1337)
  -z, --stats-port int           stats server port (default 8080)
  -t, --tor                      enable secondary listener for tor connections
      --tor-bind-ip string       IP address to bind to for tor (default "127.0.0.1")
      --tor-port int             tor server port (default 1339)
      --tor-stats-port int       tor stats server port (default 8081)
      --tor-websocket-port int   tor websocket port (default 1340)
  -v, --version                  display version
  -w, --websocket-port int       websocket port (default 1338)

Tor

To run a server on the public internet with SSL and also support Tor just use the --tor flag.

cashshuffle -s 5 -c <cert> -k <key> --tor

Now edit your torrc and add the following. Then restart Tor for the configuration to take effect.

HiddenServiceDir /var/lib/tor/cashshuffle
HiddenServicePort 1339 127.0.0.1:1339
HiddenServicePort 1340 127.0.0.1:1340
HiddenServicePort 8081 127.0.0.1:8081

For more docs on setting up onion services you can check out https://www.torproject.org/docs/tor-onion-service.html.en.

License

cashshuffle is released under the MIT license.

cashshuffle's People

Contributors

zquestz avatar emergent-reasons avatar imaginaryusername avatar defnotpaul avatar alwaysan0n avatar senescent1 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.