OpenBazaar 1.0 Server daemon for communication with OpenBazaar-Client
Python Protocol Buffer Other
Permalink
Failed to load latest commit information.
.github Create ISSUE_TEMPLATE Feb 21, 2016
api Update export listing API Jul 6, 2017
db Adding the ability to get sales by their status to the REST API. Jul 6, 2016
dht Convert partial payment websocket return to btc May 27, 2016
keys Check if 'callback' is callable before dispatch. Feb 24, 2016
market Fix shipping price in migration script Sep 21, 2017
net Bump txrudp version Jul 26, 2017
protos Add option to hide listings Sep 20, 2016
scripts pylint fixes Aug 12, 2015
seed Fix merge conflicts Apr 21, 2016
.env.sample Use .env file for configuration of Docker container Oct 13, 2016
.gitignore Use .env file for configuration of Docker container Oct 13, 2016
.pylintrc pylint fixes Aug 12, 2015
.travis.yml Travis Fixes Aug 27, 2015
Dockerfile Add current directory to Docker image instead of cloning again during… Oct 13, 2016
LICENSE License date Aug 19, 2017
Makefile Fix typo and add doctests for utils.py Mar 8, 2016
README.md Use .env file for configuration of Docker container Oct 13, 2016
bootstrap.py Initialize listeners before bootstrap completes Dec 6, 2015
config.py Bump version May 5, 2017
daemon.py Add interfaces for new transports Mar 9, 2016
docker-compose.yml Use .env file for configuration of Docker container Oct 13, 2016
docker-entrypoint.sh added ssl support in docker-compose.yml Apr 11, 2016
interfaces.py IP banning first pass Mar 30, 2016
log.py set warning logs to higher priority than info and updated default log… Dec 14, 2016
ob.cfg Bump tx fee Jun 1, 2017
openbazaard.py Bump version May 5, 2017
requirements.txt Merge branch 'master' of https://github.com/OpenBazaar/OpenBazaar-Server Jul 26, 2017
test_requirements.txt Add astroid to test_requirements.txt Dec 10, 2015

README.md

OpenBazaar Server

Build Status Coverage Status Slack Status

This repo contains the OpenBazaar networking daemon that can be used to access the p2p network. It establishes connections and maintains a Kademlia style DHT. Rest and websocket APIs are available for clients to communicate with the daemon.

Install

Pre-built installers which bundle the client and server components can be found here.

Depending on your system configuration you may need to install some additional dependencies. You can find more detailed, OS specific, instructions here.

To install just this server:

sudo pip install -r requirements.txt

Usage

python openbazaard.py start --help
usage: python openbazaard.py start [<args>]

Start the OpenBazaar server

optional arguments:
  -h, --help            show this help message and exit
  -d, --daemon          run the server in the background as a daemon
  -t, --testnet         use the test network
  -l LOGLEVEL, --loglevel LOGLEVEL
                        set the logging level [debug, info, warning, error,
                        critical]
  -p PORT, --port PORT  set the network port
  -a ALLOWIP, --allowip ALLOWIP
                        only allow api connections from this ip
  -r RESTAPIPORT, --restapiport RESTAPIPORT
                        set the rest api port
  -w WEBSOCKETPORT, --websocketport WEBSOCKETPORT
                        set the websocket api port
  -b HEARTBEATPORT, --heartbeatport HEARTBEATPORT
                        set the heartbeat port
  --pidfile PIDFILE     name of the pid file

Docker

Set Username and Password

cp .env.sample .env
nano ./.env

Build and run

docker-compose up

Backup

All relevant data will go to

./data

SSL Support

  • Generate certificate as described here

  • Place the server.crt and server.key into

./ssl
  • Enable SSL in
./docker-compose.yml

License

OpenBazaar Server is licensed under the MIT License.