From 8c3409636b151224722263627eb3a2595f3053c4 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Thu, 21 Jul 2022 09:34:15 +1000 Subject: [PATCH] adding in jwt params --- templates/config.toml.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index faa2cff..bd2a31d 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -5,16 +5,24 @@ logging="{{besu_log_level}}" data-storage-format="{{besu_data_storage_format}}" {% endif %} +# JWT {% if besu_engine_jwt_disabled is defined and besu_engine_jwt_disabled|bool == True %} engine-jwt-disabled=true {% else %} +# authentication is enabled by default when engine-jwt-disabled=false +engine-jwt-disabled=false {% if besu_engine_jwt_secret is defined and besu_engine_jwt_secret != "" %} engine-jwt-secret="{{besu_engine_jwt_secret}}" {% endif %} {% if besu_engine_rpc_port is defined and besu_engine_rpc_port != "" %} +engine-rpc-enabled=true engine-rpc-port={{besu_engine_rpc_port}} {% endif %} +{% if besu_engine_host_allowlist is defined %} +engine-host-allowlist={{besu_engine_host_allowlist|map('to_json')|join(',')}} {% endif %} +{% endif %} + {% if besu_node_private_key_file != "" %} # private_key