diff --git a/docs/source/configuration.md b/docs/source/configuration.md index b5d538e1..86da3172 100644 --- a/docs/source/configuration.md +++ b/docs/source/configuration.md @@ -65,7 +65,7 @@ environment variables available are: - `BIGCHAINDB_STATSD_RATE` is a float between `0` and `1` that defines the fraction of transaction operations sampled. - `BIGCHAINDB_API_ENDPOINT` defines the API endpoint to use (e.g. `http://localhost:9984/api/v1`). - `BIGCHAINDB_CONSENSUS_PLUGIN` defines the name of the [consensus plugin](consensus.html) to use. -- `BIGCHAINDB_SERVER_BIND` defines where to bind the server socket, the format is `addr:port` (e.g. `0.0.0.0:9984`). +- `BIGCHAINDB_SERVER_BIND` defines where to bind the server socket, the format is `addr:port` (e.g. `localhost:9984`). - `BIGCHAINDB_SERVER_WORKERS` defines the [number of workers](http://docs.gunicorn.org/en/stable/settings.html#workers) to start for the server API. - `BIGCHAINDB_SERVER_THREADS` defines the [number of threads](http://docs.gunicorn.org/en/stable/settings.html#threads) @@ -129,7 +129,7 @@ you will get the following values for all the configuration settings: "pubkey1" ], "server": { - "bind": "0.0.0.0:9984", + "bind": "localhost:9984", "threads": null, "workers": null }, @@ -164,7 +164,7 @@ WARNING:bigchaindb.config_utils:Cannot find config file `/home/vrde/.bigchaindb` }, "keyring": [], "server": { - "bind": "0.0.0.0:9984", + "bind": "localhost:9984", "threads": null, "workers": null }, @@ -213,7 +213,7 @@ WARNING:bigchaindb.config_utils:Cannot find config file `/home/vrde/.bigchaindb` }, "keyring": [], "server": { - "bind": "0.0.0.0:9984", + "bind": "localhost:9984", "threads": null, "workers": null }, diff --git a/docs/source/http-client-server-api.md b/docs/source/http-client-server-api.md index da045fa3..9160082e 100644 --- a/docs/source/http-client-server-api.md +++ b/docs/source/http-client-server-api.md @@ -5,8 +5,10 @@ When you start Bigchaindb using `bigchaindb start`, an HTTP API is exposed at: - [http://localhost:9984/api/v1/](http://localhost:9984/api/v1/) -Please note that by default the server binds to `0.0.0.0:9984`, hence the API -is exposed to the world. +Please note that for security reasons the server binds to `localhost:9984`. +If you want to bind the server to `0.0.0.0` we recommend you to read +[Deploying Gunicorn](http://docs.gunicorn.org/en/stable/deploy.html) and +follow the instructions to deploy it in production. The HTTP API currently exposes two endpoints, one to get information about a specific transaction id, and one to push a transaction to the BigchainDB diff --git a/docs/source/installing-server.md b/docs/source/installing-server.md index 0d12a875..86629a54 100644 --- a/docs/source/installing-server.md +++ b/docs/source/installing-server.md @@ -130,7 +130,7 @@ stored on your host machine under ` ~/.bigchaindb_docker/config`: $ docker-compose run --rm bigchaindb bigchaindb configure Starting bigchaindb_rethinkdb-data_1 Generating keypair -API Server bind? (default `0.0.0.0:9984`): +API Server bind? (default `localhost:9984`): Database host? (default `localhost`): rethinkdb Database port? (default `28015`): Database name? (default `bigchain`):