2021-11-23 20:35:01 +03:00
|
|
|
{
|
|
|
|
"enclave": {
|
2022-11-18 16:21:14 +03:00
|
|
|
"type": "{{ enclave_type }}",
|
|
|
|
"platform": "{{ enclave_platform }}"
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"network": {
|
2023-01-31 17:06:04 +03:00
|
|
|
"node_to_node_interface": { "bind_address": "{{ node_address }}", "published_address": "{{ published_node_address }}" },
|
2021-11-23 20:35:01 +03:00
|
|
|
"rpc_interfaces": {{ rpc_interfaces|tojson }}
|
2022-06-15 20:06:32 +03:00
|
|
|
{% if acme %}
|
|
|
|
, "acme": {{ acme|tojson }}
|
|
|
|
{% endif %}
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"node_certificate":
|
|
|
|
{
|
|
|
|
"subject_name": "CN=CCF Node",
|
|
|
|
"subject_alt_names": {{ subject_alt_names|tojson }},
|
|
|
|
"curve_id": "{{ curve_id }}",
|
|
|
|
"initial_validity_days": {{ initial_node_cert_validity_days }}
|
|
|
|
},
|
2022-03-16 21:59:09 +03:00
|
|
|
"node_data_json_file": {{ node_data_json_file|tojson }},
|
2023-01-31 17:06:04 +03:00
|
|
|
"attestation":
|
|
|
|
{
|
2023-12-13 13:37:14 +03:00
|
|
|
"snp_endorsements_servers": {{ snp_endorsements_servers|tojson }},
|
2023-12-15 19:12:43 +03:00
|
|
|
"snp_security_policy_file": "{{ snp_security_policy_file }}",
|
|
|
|
"snp_uvm_endorsements_file": "{{ snp_uvm_endorsements_file }}"
|
2022-10-03 15:18:34 +03:00
|
|
|
},
|
2022-06-30 13:51:40 +03:00
|
|
|
"service_data_json_file": {{ service_data_json_file|tojson }},
|
2021-12-01 11:37:28 +03:00
|
|
|
"command": {
|
|
|
|
"type": "{{ start_type }}",
|
2023-01-31 17:06:04 +03:00
|
|
|
"service_certificate_file": "{{ service_cert_file }}",
|
2021-12-01 11:37:28 +03:00
|
|
|
"start":
|
|
|
|
{
|
|
|
|
"members": {{ members_info|tojson }},
|
|
|
|
"constitution_files": {{ constitution|tojson }},
|
|
|
|
"service_configuration":
|
|
|
|
{
|
|
|
|
"recovery_threshold": {{ recovery_threshold or 0 }},
|
|
|
|
"maximum_node_certificate_validity_days": {{ maximum_node_certificate_validity_days }},
|
2023-04-17 20:27:40 +03:00
|
|
|
"maximum_service_certificate_validity_days": {{ maximum_service_certificate_validity_days }}
|
2022-01-19 13:35:38 +03:00
|
|
|
},
|
|
|
|
"initial_service_certificate_validity_days": {{ initial_service_cert_validity_days }}
|
2021-12-01 11:37:28 +03:00
|
|
|
},
|
|
|
|
"join":
|
2021-11-23 20:35:01 +03:00
|
|
|
{
|
2021-12-09 13:00:00 +03:00
|
|
|
"retry_timeout": "{{ join_timer }}",
|
2023-08-09 19:04:00 +03:00
|
|
|
"target_rpc_address": "{{ target_rpc_address }}",
|
|
|
|
"follow_redirect": {{ follow_redirect|tojson }}
|
2022-01-19 13:35:38 +03:00
|
|
|
},
|
|
|
|
"recover": {
|
2022-03-10 18:10:56 +03:00
|
|
|
"initial_service_certificate_validity_days": {{ initial_service_cert_validity_days }},
|
|
|
|
"previous_service_identity_file": "{{ previous_service_identity_file }}"
|
2021-11-23 20:35:01 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ledger":
|
|
|
|
{
|
|
|
|
"directory": "{{ ledger_dir }}",
|
|
|
|
"read_only_directories": {{ read_only_ledger_dirs|tojson }},
|
2021-12-06 19:56:05 +03:00
|
|
|
"chunk_size": "{{ ledger_chunk_bytes }}"
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"snapshots":
|
|
|
|
{
|
|
|
|
"directory": "{{ snapshots_dir }}",
|
2022-06-30 12:03:16 +03:00
|
|
|
"tx_count": {{ snapshot_tx_interval }},
|
|
|
|
"read_only_directory": {{ read_only_snapshots_dir|tojson }}
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"logging":
|
|
|
|
{
|
|
|
|
"host_level": "{{ host_log_level }}",
|
2022-02-01 19:52:09 +03:00
|
|
|
"format": "Text"
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"consensus":
|
|
|
|
{
|
2022-10-31 13:40:55 +03:00
|
|
|
"message_timeout": "{{ message_timeout }}",
|
2023-09-28 19:28:49 +03:00
|
|
|
"election_timeout": "{{ election_timeout }}",
|
|
|
|
"max_uncommitted_tx_count": {{ max_uncommitted_tx_count|tojson or 0 }}
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
2021-12-09 18:38:36 +03:00
|
|
|
"ledger_signatures":
|
2021-11-23 20:35:01 +03:00
|
|
|
{
|
2021-12-09 18:38:36 +03:00
|
|
|
"tx_count": {{ sig_tx_interval }},
|
|
|
|
"delay": "{{ signature_interval_duration }}"
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
|
|
|
"jwt":
|
|
|
|
{
|
2021-12-09 13:00:00 +03:00
|
|
|
"key_refresh_interval": "{{ jwt_key_refresh_interval }}"
|
2021-11-23 20:35:01 +03:00
|
|
|
},
|
2021-12-09 18:38:36 +03:00
|
|
|
"output_files": {
|
|
|
|
"node_certificate_file": "{{ node_certificate_file or "node.pem" }}",
|
|
|
|
"pid_file": "{{ node_pid_file or "node.pid" }}",
|
|
|
|
"node_to_node_address_file": "{{ node_address_file }}",
|
|
|
|
"rpc_addresses_file" : "{{ rpc_addresses_file }}"
|
|
|
|
},
|
2023-04-12 23:10:28 +03:00
|
|
|
"tick_interval": "{{ tick_ms }}ms",
|
2021-12-09 18:38:36 +03:00
|
|
|
"slow_io_logging_threshold": "10ms",
|
2021-12-09 13:00:00 +03:00
|
|
|
"client_connection_timeout": "2s",
|
2021-11-23 20:35:01 +03:00
|
|
|
"node_client_interface": {{ node_client_interface|tojson }},
|
2021-12-01 11:37:28 +03:00
|
|
|
"worker_threads": {{ worker_threads }},
|
2021-12-06 19:56:05 +03:00
|
|
|
"memory": {
|
2023-12-13 20:07:20 +03:00
|
|
|
"circuit_size": "16MB",
|
2023-05-24 17:19:44 +03:00
|
|
|
"max_msg_size": "{{ max_msg_size_bytes }}",
|
2023-12-13 20:07:20 +03:00
|
|
|
"max_fragment_size": "256KB"
|
2023-03-10 19:49:27 +03:00
|
|
|
},
|
2023-03-23 17:48:54 +03:00
|
|
|
"ignore_first_sigterm": {{ ignore_first_sigterm|tojson }}{% if node_to_node_message_limit %},
|
|
|
|
"node_to_node_message_limit": {{ node_to_node_message_limit|tojson }}{% endif %}
|
2021-11-23 20:35:01 +03:00
|
|
|
}
|