From 05aa09ae865ca3d443b510afaaa72c0be48eec6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 26 Apr 2019 13:07:57 +0200 Subject: [PATCH] include hostname and hostname with .tinc in rpc vhost aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 6 +++++- tasks/container.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 98bb9eb..6c1fa9f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -25,7 +25,11 @@ geth_sync_check_script: '/usr/local/bin/check_geth_sync.sh' geth_rpc_addr: '127.0.0.1' geth_rpc_port: 8545 geth_rcp_api: 'eth,net,web3,personal,shh,admin' -geth_alias: 'geth' +geth_aliases: + - geth + - localhost + - '{{ hostname }}' + - '{{ hostname }}.tinc' # Sync mode: full, fast, light geth_sync_mode: 'light' diff --git a/tasks/container.yml b/tasks/container.yml index 9ffeb43..0ff9298 100644 --- a/tasks/container.yml +++ b/tasks/container.yml @@ -36,7 +36,7 @@ --rpc --rpcaddr=0.0.0.0 --rpcport={{ geth_rpc_port }} - --rpcvhosts={{ geth_alias }},localhost + --rpcvhosts={{ geth_aliases | join(",") }} --rpcapi={{ geth_rcp_api }} volumes: - '{{ geth_cont_vol }}/keys:/keys:rw'