added settings to config.yml output

This commit is contained in:
Jürg Schulthess
2025-08-02 11:14:42 +02:00
parent 4a20b113e1
commit e8388617c1
3 changed files with 14 additions and 11 deletions

View File

@@ -29,8 +29,6 @@ public class RNSCommon {
/**
* Reticulum Jinjava configuration template name
*/
//public static String templateRNSClientConfig = "reticulum_server_config_template.jinja";
//public static String templateRNSServerConfig = "reticulum_server_config_template.jinja";
public static String jinjaConfigTemplateName = "reticulum_config_template.jinja";
///**

View File

@@ -262,6 +262,15 @@ public class RNSNetwork {
if (Files.notExists(configFile)) {
try {
// jinjava variables set in context:
// * tcp_gateway_servers: list of nodes with a TCPServerInterface
// * num_client_interfaces: number of client interfaces to gateways be configured
// * host_fqdn: host FQDN
// * qortal_network_name: either "qortal" or "qortaltest" (from isTestnet)
// * is_reticulum_gateway: one of the instances (Qortal core or RNS) has
// at least one Gateway interface
// * is_test_net: String "true" or "false" (from isTestNet)
// * target_port: target port for TCPServerInterface (only)
var jnj = new Jinjava();
var reticulumGateways = StringUtils.join(reticulumTcpGatewayServers, " ");
log.info("reticulumGateways: {}", reticulumGateways);

View File

@@ -1,15 +1,11 @@
---
# Reticulum server config
#
# jinjava variables set in context:
# * tcp_gateway_servers
# * num_client_interfaces: number of client interfaces to core servers
# * host_fqdn: host FQDN
# * qortal_network_name: either "qortal" or "qortaltest" (from isTestnet)
# * is_reticulum_gateway: one of the instances (Qortal core or RNS) has
# at least one Gateway interface
# * is_test_net: boolean (from isTestNet)
# * target_port: target port for TCPServerInterface (only)
# Qortal settings (settins.json) used for generation of this config:
# "reticulumHasServerInterface": node has gateway interface [boolean]
# "reticulumDesiredClientInterfaces": how many TCP server interfaces
# to generate [integer] (deafault: 1)
# "reticulumTcpGatewayServers": list of TCP Gateway nodes [json list]
reticulum: