mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Update documentation about default bind address
This commit is contained in:
parent
6844a1a212
commit
7cd26cbd3a
@ -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
|
||||
},
|
||||
|
@ -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
|
||||
|
@ -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`):
|
||||
|
Loading…
x
Reference in New Issue
Block a user