mirror of
https://github.com/status-im/infra-role-geth.git
synced 2025-02-16 13:56:31 +00:00
rename geth_aliases to geth_rpc_vhosts, add geth_cont_name
Fixes 403 Forbidden errors on connections between containers. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f446b09f19
commit
4cdf6e0e53
@ -32,19 +32,20 @@ geth_rpc_addr: '127.0.0.1'
|
||||
geth_rpc_port: 8545
|
||||
# Available: admin, clique, debug, eth, les, miner, net, personal, rpc, txpool, web3
|
||||
geth_rcp_api: 'eth,net,web3,personal,admin'
|
||||
# useful for linking containers
|
||||
geth_rpc_extra_vhost: geth
|
||||
geth_rpc_vhosts:
|
||||
- 'localhost'
|
||||
- '{{ geth_cont_name }}'
|
||||
- '{{ geth_rpc_extra_vhost }}'
|
||||
- '{{ hostname }}'
|
||||
- '{{ hostname }}.tinc'
|
||||
- '{{ ansible_local.tinc.vpn_ip }}'
|
||||
# Web Sockets API
|
||||
geth_websocket_enabled: true
|
||||
geth_websocket_port: '{{ geth_rpc_port + 1 | int }}'
|
||||
geth_websocket_api: 'eth,net,web3,personal,admin'
|
||||
geth_websocket_origins: 'localhost'
|
||||
# useful for linking containers
|
||||
geth_extra_alias: geth
|
||||
geth_aliases:
|
||||
- 'localhost'
|
||||
- '{{ geth_extra_alias }}'
|
||||
- '{{ hostname }}'
|
||||
- '{{ hostname }}.tinc'
|
||||
- '{{ ansible_local.tinc.vpn_ip }}'
|
||||
|
||||
# Sync mode: full, fast, light
|
||||
geth_sync_mode: 'light'
|
||||
|
@ -55,7 +55,7 @@ services:
|
||||
--http
|
||||
--http.addr=0.0.0.0
|
||||
--http.port={{ geth_rpc_port }}
|
||||
--http.vhosts={{ geth_aliases | join(",") }}
|
||||
--http.vhosts={{ geth_rpc_vhosts | join(",") }}
|
||||
--http.api={{ geth_rcp_api }}
|
||||
--ipcpath=/data/geth.ipc
|
||||
{% endif %}
|
||||
@ -70,7 +70,7 @@ services:
|
||||
--bootnodes="{{ geth_bootnodes | join(',') }}"
|
||||
{% endif %}
|
||||
--nousb
|
||||
--verbosity={{ geth_log_level_id }}
|
||||
--verbosity={{ geth_log_level_id }}
|
||||
--maxpeers={{ geth_max_peers }}
|
||||
--maxpendpeers="{{ geth_max_pend_peers }}"
|
||||
--port={{ geth_port }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user