This file is old and largely false
Rename config_template.json
to config.json
and remove the fist line.
The following can then be configured in config.json
- host: the mysql database host *
- user: the mysql user *
- password: the mysql users password *
- database: the mysql database name *
* required for init_mysql
script
Print line numbers before log messages
Print date before log messages
Print whitespace before log messages, to allow for a consistent indentation
Have consistent color after newlines in the pm2 log
!!This is very performance hungry and should be deactivated in production!!
The pin for updates between servers
If set to null
the server enters read-only mode
Respond to Full_Querys in read-only mode
Accept Logins in read-only mode
This enables anyone to change and read entries on your server!
Handle Packages which don't have the correct size
The interval in which to look for changed entries and write them to the queue
The interval in which to try to send the queue
The interval in which to perform a Full_Query
The server on which to perform a Full_Query
.
Should be formated like: host
:port
If left empty, or if the specified server is not in the servers
table ALL known servers will be queried!
Respond to "c"+("ip"||"hostname")(check if an IP-address or host belongs to a registered participant)
The Timeout duration for client connections
The File to which the program should write it's standard logging
"" will write to the stdout
The File to which the program should write it's errors
"" will write to the stderr
The port on which the binary server should listen
The level of logging verbosity:
0 -> only errors
1 -> only relevant information
2 -> debug
3 -> all
The port on which to serve the web interface
The password for the web interface
Send an EMAIL to the configured account when a server wasn't reachable n times.
E-mail account, to which to send messages
if true a link to an online service, for previewing emails will be printed to the console, after a message was sent!
messages will not be sent to the account specified above!
customized messages
[value] will be replaced with the corresponding value
print line numbers in front of log messages
aThe server enters read-only mode if the "serverPin" is set to null.
In read-only the servers doesn't perform logins on other servers.
It does however still perform Full_Querys (simulated by Peer_Query with search-pattern "").
if "allowFullQueryInReadonly" is set to true it also responds to FullQuerys.
similarly if "allowLoginInReadonly" is set to true it accepts Logins.