mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-02 03:38:08 +08:00
repchain2.0-update26:增加节点程序自动设置ssl的密钥配置。
This commit is contained in:
parent
f4c45b51ba
commit
eda5872f9f
@ -105,7 +105,8 @@ system {
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "951002007l78123233.super_admin"
|
||||
chain_network_id = "net1" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
#如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
||||
ws_enable = 1#api 0,不开启;1,开启
|
||||
|
@ -105,10 +105,11 @@ system {
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "951002007l78123233.super_admin"
|
||||
chain_network_id = "net1" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
#如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
||||
ws_enable = 0#api 0,不开启;1,开启
|
||||
ws_enable = 1#api 0,不开启;1,开启
|
||||
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
|
||||
#交易生产方式
|
||||
trans_create_type = 1#0,手动;1,自动
|
||||
|
@ -105,10 +105,11 @@ system {
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "951002007l78123233.super_admin"
|
||||
chain_network_id = "net1" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
#如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
||||
ws_enable = 0#api 0,不开启;1,开启
|
||||
ws_enable = 1#api 0,不开启;1,开启
|
||||
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
|
||||
#交易生产方式
|
||||
trans_create_type = 1#0,手动;1,自动
|
||||
|
@ -105,10 +105,11 @@ system {
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "951002007l78123233.super_admin"
|
||||
chain_network_id = "net1" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
#如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
||||
ws_enable = 0#api 0,不开启;1,开启
|
||||
ws_enable = 1#api 0,不开启;1,开启
|
||||
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
|
||||
#交易生产方式
|
||||
trans_create_type = 1#0,手动;1,自动
|
||||
|
@ -105,7 +105,8 @@ system {
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "951002007l78123233.super_admin"
|
||||
chain_network_id = "net1" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
#如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
||||
ws_enable = 1#api 0,不开启;1,开启
|
||||
|
@ -34,7 +34,11 @@ class RepChainConfig {
|
||||
val userConfigFile = new File(ConfigFileDir+this.systemName+ File.separator+"system.conf")
|
||||
this.sysConf = ConfigFactory.load()
|
||||
if (userConfigFile.exists()) {
|
||||
val combined_conf = ConfigFactory.parseFile(userConfigFile).withFallback(this.sysConf)
|
||||
val myConfig =
|
||||
ConfigFactory.parseString("akka.remote.artery.ssl.config-ssl-engine.key-store = \"jks/" + this.systemName +
|
||||
".jks\"")
|
||||
var combined_conf = ConfigFactory.parseFile(userConfigFile).withFallback(this.sysConf)
|
||||
combined_conf = myConfig.withFallback(combined_conf)
|
||||
this.sysConf = ConfigFactory.load(combined_conf)
|
||||
} else{
|
||||
RepLogger.trace(RepLogger.System_Logger, this.systemName + " ~ " + "ClusterSystem" + "~" + " custom configuration file not exist")
|
||||
|
Loading…
Reference in New Issue
Block a user