-
Notifications
You must be signed in to change notification settings - Fork 23
/
dmn.config.inc.php.sample
145 lines (120 loc) · 5.47 KB
/
dmn.config.inc.php.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
/*
This file is part of Dash Ninja.
https://github.com/elbereth/dashninja-ctl
Dash Ninja is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Dash Ninja is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dash Ninja. If not, see <http://www.gnu.org/licenses/>.
*/
// Copy this files to dmn.config.inc.php and change the values as you wish
// Check we are run part of a script and not standalone
if (!defined('DMN_SCRIPT') || (DMN_SCRIPT !== true)) {
die("Not executable.\n");
}
// Path and regex to nodes
// Path to nodes
DEFINE('DMN_PID_PATH','/home/');
// Username of the p2pool node
DEFINE('DMN_P2POOL_UNAME','p2pool');
// Prefix for masternode usernames
DEFINE('DMN_PID_PREFIX','dmn');
// Regex for masternode usernames
DEFINE('DMN_PID_REGEX',"/dmn(\d\d*)/");
// Default path to dashd
DEFINE('DMN_DASHD_DEFAULT','/usr/local/bin/dashd');
// How much to wait for start/stop before giving up (in seconds)
DEFINE('DMN_STOPWAIT',10);
// Nice level for mainnet and testnet nodes
DEFINE('DMN_NICELEVEL_MAIN',10);
DEFINE('DMN_NICELEVEL_TEST',18);
// How many successive times a node can be notresponding before force-stop or restart
DEFINE('DMN_NRCOUNT',3);
DEFINE('DMN_NRCOUNT_TEST',6);
// Where to store the counter file
DEFINE('DMN_NRCOUNTDIR','/tmp/');
// Log NRs
DEFINE('DMN_NRCOUNTLOG','/var/log/dmn/nrcount.log');
// Parallel threads (for start-stop and RPC commands)
DEFINE('DMN_THREADS_MAX',8);
// Semaphores
// ctl auto status
DEFINE('DMN_CTLSTATUSAUTO_SEMAPHORE','/var/run/dmnctlstatusauto%d.pid');
// dbgen
DEFINE('DMN_DBGEN_SEMAPHORE','/var/run/dmndbgen.pid');
// Port checker specifics
// Semaphore for multi-threading (only allow 1 instance)
DEFINE('DMN_PORTCHECK_SEMAPHORE','/var/run/dmnportcheck.pid');
// Time-out for checking port after this number of seconds
DEFINE('DMN_PORTCHECK_TIMEOUT',4);
// Interval between checks for a node (in seconds)
DEFINE('DMN_PORTCHECK_INTERVAL',3600);
// Bind to this IP (cannot be local, this needs to be set to an external IP)
DEFINE('DMN_PORTCHECK_BINDIP4',"127.0.0.1");
DEFINE('DMN_PORTCHECK_BINDIP6',"::1");
// How many ports to check at the same time
DEFINE('DMN_PORTCHECK_THREADS_MAX',64);
// Balancer retriever specifics
// Semaphore file (only allow 1 instance)
DEFINE('DMN_BALANCE_SEMAPHORE','/var/run/dmnbalance.pid');
// Interval between balance retrieval for a pubkey (in seconds)
DEFINE('DMN_BALANCE_INTERVAL',900);
// URL for testnet balance retrieval (insight api)
DEFINE('DMN_BALANCE_URL_TESTNET','http://127.0.0.1:13001/insight-api/addr/%%p%%/balance');
// URL for mainnet balance retrieval (insight api)
DEFINE('DMN_BALANCE_URL_MAINNET','http://127.0.0.1:3001/insight-api/addr/%%p%%/balance');
// Block Parser specifics
// Semaphore file (only allow 1 instance)
DEFINE('DMN_BLOCKPARSER_SEMAPHORE','/var/run/dmnblockparser.pid');
// Activate archival (if disabled files are deleted once consumed)
DEFINE('DMN_BLOCKPARSER_ARCHIVE_DO',false);
// Folder to archive json files (username subfolders will be created)
DEFINE('DMN_BLOCKPARSER_ARCHIVE','/home/dash-blkhist/archive/current/');
// Folder to archive longterm (multiple json files together per username)
DEFINE('DMN_BLOCKPARSER_ARCHIVE_LONGTERM','/home/dash-blkhist/archive/longterm/');
// Minimum number of files to tar together for longterm archiving
DEFINE('DMN_BLOCKPARSER_ARCHIVE_LONGTERM_MIN',576);
// Third parties fetching configuration
// Dash Whale partner ID
DEFINE('DMN_DASHWHALE_PARTNERID', '000000000000');
// Auto-Update URLs
// Testnet binary (Bamboo DASH server)
DEFINE('DMN_AUTOUPDATE_TEST','https://bamboo.dash.org/artifact/DASHL-DEV/JOB1/build-latestSuccessful/gitian-linux-dash-dist/dashcore-0.12.2-linux64.tar.gz');
// Semaphore
DEFINE('DMN_AUTOUPDATE_SEMAPHORE','/var/run/dmnautoupdate.pid');
// Command Download specifics
// Download folder
DEFINE('DMN_CDL_DIR','/var/www/dash/download/');
// Download URL
DEFINE('DMN_CDL_URL','https://cdl.yourdomain.tk/');
// Direct access to DB (should not be used)
DEFINE('DMNCTLMYSQLUSER','dash-mnninja-com');
DEFINE('DMNCTLMYSQLPASS','yourrandompassword');
DEFINE('DMNCTLMYSQLDATABASE','dash_ninja');
DEFINE('DMNCTLMYSQLHOST','localhost');
// Webservice configuration
// Public API end-point
define('DMN_URL_API','https://yourdomain.tk/api');
// Private API end-point
define('DMN_URL_CMD','https://cmd.yourdomain.tk');
// Private API SSL configuration (you need a CA, certificate and private key for this hub client)
define('DMN_SSL_CAINFO','/usr/share/ca-certificates/yourdomain.tk/DashNinja_CA_Root.crt');
define('DMN_SSL_CERT','/etc/ssl/private/hub01.cmd.yourdomain.tk.crt');
define('DMN_SSL_KEY','/etc/ssl/private/hub01.cmd.yourdomain.tk.key');
// Private API interface to use
define('DMN_INTERFACE','::1');
// Third party APIs
// Coinmarketcap
// Register to get your API key, with Free level the run delta of 1200 sec should be OK)
// If you get a paid level you can decrease the run delta.
define('COINMARKETCAP_API_KEY','b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c');
define('COINMARKETCAP_RUN_DELTA', 1200);
// Indicate the configuration was loaded
DEFINE('DMN_CONFIG',true);
?>