Removed all option for host-whitelist (#1347)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
MadelineMurray 6 years ago committed by GitHub
parent 8a3862a565
commit 764e18174f
  1. 4
      docs/EthStats/Lite-Block-Explorer.md
  2. 10
      docs/Getting-Started/Starting-Pantheon.md
  3. 4
      docs/JSON-RPC-API/Using-JSON-RPC-API.md
  4. 4
      docs/Reference/Pantheon-CLI-Syntax.md

@ -28,7 +28,7 @@ To run the Lite Explorer using the Docker image:
To run Pantheon in development mode:
```bash
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist="all" --rpc-http-enabled --data-path=/tmp/tmpDatdir
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist=* --rpc-http-enabled --data-path=/tmp/tmpDatdir
```
1. Run the `alethio/ethereum-lite-explorer` Docker image specifying the RPC HTTP URL (`http://localhost:8545` in this example):
@ -77,7 +77,7 @@ To run the Lite Explorer using the Docker image:
To run Pantheon in development mode:
```bash
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist="all" --rpc-http-enabled --data-path=/tmp/tmpDatdir
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist=* --rpc-http-enabled --data-path=/tmp/tmpDatdir
```
1. In the `ethereum-lite-explorer` directory, run the Lite Explorer in development mode:

@ -3,12 +3,6 @@ description: Starting Pantheon
# Starting Pantheon
!!! important "Breaking Changes in v0.9"
In v0.9, the command line changed to improve usability. These are breaking changes; that is,
in many cases the v0.8 command line options no longer work.
The examples below and the rest of the documentation has been updated to reflect these changes. The [release notes](https://github.com/PegaSysEng/pantheon/blob/master/CHANGELOG.md)
include a mapping of the previous command line options to the new options.
Pantheon nodes can be used for varying purposes as described in the [Overview](../index.md).
Nodes can connect to the Ethereum mainnet, public testnets such as Ropsten, or private networks.
@ -75,7 +69,7 @@ call [JSON-RPC API methods](../Reference/JSON-RPC-API-Methods.md) to confirm the
To run a node that mines blocks at a rate suitable for testing purposes:
```bash
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist="all" --rpc-ws-enabled --rpc-http-enabled --data-path=/tmp/tmpDatdir
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist=* --rpc-ws-enabled --rpc-http-enabled --data-path=/tmp/tmpDatdir
```
Alternatively, use the following [configuration file](../Configuring-Pantheon/Using-Configuration-File.md)
@ -85,7 +79,7 @@ network="dev"
miner-enabled=true
miner-coinbase="0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
rpc-cors-origins=["all"]
host-whitelist=["all"]
host-whitelist=["*"]
rpc-ws-enabled=true
rpc-http-enabled=true
data-path="/tmp/tmpdata-path"

@ -71,10 +71,10 @@ If your application publishes RPC ports, specify the hostnames when starting Pan
pantheon --host-whitelist=example.com
```
Specify * or all for `--host-whitelist` to effectively disable host protection.
Specify * for `--host-whitelist` to effectively disable host protection.
!!! caution
Specifying * or all for `--host-whitelist` is not recommended for production code.
Specifying * for `--host-whitelist` is not recommended for production code.
## JSON-RPC Authentication

@ -146,7 +146,7 @@ The path to the genesis file.
### host-whitelist
```bash tab="Syntax"
--host-whitelist=<hostname>[,<hostname>...]... or * or all
--host-whitelist=<hostname>[,<hostname>...]... or *
```
```bash tab="Example Command Line"
@ -161,7 +161,7 @@ Comma-separated list of hostnames to allow [access to the JSON-RPC API](../JSON-
By default, access from `localhost` and `127.0.0.1` is accepted.
!!!tip
To allow all hostnames, use `*` or `all`. We don't recommend allowing all hostnames for production code.
To allow all hostnames, use `*`. We don't recommend allowing all hostnames for production code.
### max-peers

Loading…
Cancel
Save