Skip to content
Snippets Groups Projects
Commit 80f08a3a authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Fixed configs for listen server

parent 2246e1a2
No related branches found
No related tags found
No related merge requests found
# Kelvin Blockchain: development network
# General section
[general]
name=kelvin
type=development
node-role=full # Possible values: light, full, archive, master, root
default-wallet=node-wallet
[resources]
wallets=/opt/kelvin-node/db/kelvin-dev/wallets
# Possible values: light, full, archive, master, root
node-role=full
# General section
[general]
network-name=kelvin-test # Network config name (without trailing .cfg )
network-role=light # Possible values: light,full,archive,master,root
# Network config name (without trailing .cfg )
network-name=kelvin-dev
# Possible values: light,full,archive,master,root
network-role=root
# Server part
[server]
enabled=false # By default you don't need to open you to the world
listen_address=127.0.0.1
# By default you don't need to open you to the world
enabled=true
listen_address=0.0.0.0
listen_port_tcp=8079
# VPN stream channel processing module
[vpn]
enabled=false # Turn to true if you want to share VPN service from you node
access_groups=expats,services,admins # list of loca security access groups. Built in: expats,admins,services,nobody,everybody
# Turn to true if you want to share VPN service from you node
enabled=false
# List of loca security access groups. Built in: expats,admins,services,nobody,everybody
access_groups=expats,services,admins
network_address=10.0.0.0
network_mask=255.255.255.0
# Application Resources
[resources]
threads_cnt=0 # 0 means auto detect
# 0 means auto detect
threads_cnt=0
pid_path=/opt/kelvin-node/var/run/kelvin-node.pid
log_file=/opt/kelvin-node/var/log/kelvin-node.log
# Small built in WWW server
# Small builtin WWW server
[www]
enabled=false # Really who need this??
# Really who need this??
enabled=false
www_root=/opt/dapserver/www
url=/
......@@ -41,8 +41,8 @@
#define LOCAL_PID_FILE_PATH SYSTEM_PREFIX"/run/"DAP_APP_NAME".pid"
#define ENC_HTTP_URL "/enc_init"
#define STREAM_URL "/stream_url"
#define STREAM_CTL_URL "/stream_url"
#define STREAM_URL "/stream"
#define STREAM_CTL_URL "/stream_ctl"
#define SLIST_URL "/nodelist"
#define MAIN_URL "/"
......@@ -134,6 +134,9 @@ int main(int argc, const char * argv[])
"pid_path",
SYSTEM_PREFIX"/run/dapserver.pid"));
log_it (L_DEBUG,"config server->enabled = \"%s\" ",dap_config_get_item_str_default(
g_config,"server","enabled",false
) );
if( dap_config_get_item_bool_default(g_config,"server","enabled",false) ) {
int32_t l_port = dap_config_get_item_int32_default(g_config, "server", "listen_port_tcp",-1); // TODO Default listen port
......@@ -144,7 +147,9 @@ int main(int argc, const char * argv[])
"0.0.0.0")),
l_port,
DAP_SERVER_TCP);
}
}else
log_it(L_WARNING, "Server is enabled but no port is defined");
}
if(l_server) { // If listener server is initialized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment