mirror of
https://github.com/Qortal/qortal.git
synced 2025-11-02 08:27:05 +00:00
added settings to config.yml output
This commit is contained in:
@@ -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";
|
||||
|
||||
///**
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user