default WebSocket port to using localhost address

It's equally as sensitive as the JSON RPC API endpoint.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-08-25 15:20:41 +02:00
parent bb265a41b6
commit 87b6be842f
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ geth_rpc_vhosts:
geth_rpc_wrapper: '{{ geth_service_path }}/rpc.sh'
# Web Sockets API
geth_websocket_enabled: true
geth_websocket_addr: '127.0.0.1'
geth_websocket_port: '{{ geth_rpc_port + 1 | int }}'
geth_websocket_api: 'eth,net,web3,personal,admin'
geth_websocket_origins: 'localhost'

View File

@ -14,8 +14,8 @@ services:
- '{{ geth_port }}:{{ geth_port }}/tcp'
- '{{ geth_port }}:{{ geth_port }}/udp'
- '{{ geth_metrics_port }}:{{ geth_metrics_port }}/tcp'
- '{{ geth_websocket_port }}:{{ geth_websocket_port }}/tcp'
- '{{ geth_rpc_addr }}:{{ geth_rpc_port }}:{{ geth_rpc_port }}'
- '{{ geth_websocket_addr }}:{{ geth_websocket_port }}:{{ geth_websocket_port }}/tcp'
- '{{ geth_rpc_addr }}:{{ geth_rpc_port }}:{{ geth_rpc_port }}/tcp'
labels:
# These are just for documentation
org.ethereum.geth.network_name: '{{ geth_network_name }}'