|
|
|
# data
|
|
|
|
data-path="{{besu_data_dir}}"
|
|
|
|
logging="{{besu_log_level}}"
|
|
|
|
|
|
|
|
# private_key
|
|
|
|
{% if besu_node_private_key_file != "" %}
|
|
|
|
node-private-key-file="{{besu_node_private_key_file}}"
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if besu_network.lower() in ["mainnet", "rinkeby", "goerli", "ropsten", "dev"] %}
|
|
|
|
network="{{besu_network}}"
|
|
|
|
{% else %}
|
|
|
|
genesis-file="{{ besu_genesis_path }}"
|
|
|
|
{% endif %}
|
|
|
|
sync-mode="{{besu_sync_mode}}"
|
|
|
|
host-whitelist=[{{besu_host_whitelist|map('to_json')|join(',')}}]
|
|
|
|
|
|
|
|
# rpc
|
|
|
|
{% if besu_rpc_http_enabled|bool == True %}
|
|
|
|
rpc-http-enabled={{besu_rpc_http_enabled}}
|
|
|
|
rpc-http-host="{{besu_rpc_http_host}}"
|
|
|
|
rpc-http-port={{besu_rpc_http_port}}
|
|
|
|
rpc-http-api=[{{besu_rpc_http_api|map('to_json')|join(',')}}]
|
|
|
|
rpc-http-cors-origins=[{{besu_rpc_http_cors_origins|map('to_json')|join(',')}}]
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# ws
|
|
|
|
{% if besu_rpc_ws_enabled|bool == True %}
|
|
|
|
rpc-ws-enabled={{besu_rpc_ws_enabled}}
|
|
|
|
rpc-ws-host="{{besu_rpc_ws_host}}"
|
|
|
|
rpc-ws-port={{besu_rpc_ws_port}}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# graphql
|
|
|
|
{% if besu_graphql_http_enabled|bool == True %}
|
|
|
|
graphql-http-enabled={{besu_graphql_http_enabled}}
|
|
|
|
graphql-http-host="{{besu_graphql_http_host}}"
|
|
|
|
graphql-http-port={{besu_graphql_http_port}}
|
|
|
|
graphql-http-cors-origins=[{{besu_graphql_http_cors_origins|map('to_json')|join(',')}}]
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# p2p
|
|
|
|
{% if besu_host_ip != "" %}
|
|
|
|
p2p-host="{{besu_host_ip}}"
|
|
|
|
{% endif %}
|
|
|
|
p2p-port={{besu_p2p_port}}
|
|
|
|
|
|
|
|
# metrics
|
|
|
|
metrics-enabled=true
|
|
|
|
metrics-host="{{besu_metrics_host}}"
|
|
|
|
metrics-port={{besu_metrics_port}}
|
|
|
|
|
|
|
|
{% if besu_bootnodes|length > 0 %}
|
|
|
|
# bootnodes
|
|
|
|
bootnodes={{besu_bootnodes}}
|
|
|
|
{% endif %}
|