From 4583821179ffb32bbd235279e2efb53ce2f66703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 17 Oct 2022 19:15:23 +0200 Subject: [PATCH] extend --ws.origins value to be same as rpc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Defaulting to `localhost` might be causing issues when `nim-waku` nodes are trying to connect. For some reason there's no clear error like with RPC. Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 2 +- templates/docker-compose.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 24849c2..d6100e3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -48,7 +48,7 @@ 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,engine' -geth_websocket_origins: 'localhost' +geth_websocket_origins: '{{ geth_rpc_vhosts }}' # Engine API geth_authrpc_enabled: true diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 547a700..f9f16b9 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -69,7 +69,7 @@ services: --ws.addr=0.0.0.0 --ws.port={{ geth_websocket_port }} --ws.api={{ geth_websocket_api }} - --ws.origins='{{ geth_websocket_origins }}' + --ws.origins={{ geth_websocket_origins | sort | join(",") }} {% endif %} {% if geth_authrpc_enabled %} --authrpc.addr=0.0.0.0