forked from phpcoinn/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.inc.php
More file actions
executable file
·95 lines (81 loc) · 2.26 KB
/
config-sample.inc.php
File metadata and controls
executable file
·95 lines (81 loc) · 2.26 KB
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
<?php
/*
|--------------------------------------------------------------------------
| Main configuration file
| Here are overridden default settings from file: config.default.php
|--------------------------------------------------------------------------
*/
$_config['chain_id'] = trim(file_get_contents(dirname(__DIR__)."/chain_id"));
if($_config['chain_id'] != DEFAULT_CHAIN_ID && file_exists(__DIR__ . "/config." . $_config['chain_id'].".inc.php")) {
require_once __DIR__ . "/config.".$_config['chain_id'].".inc.php";
return;
}
/*
|--------------------------------------------------------------------------
| Database Configuration
|--------------------------------------------------------------------------
*/
// The database DSN
$_config['db_connect'] = 'mysql:host=localhost;dbname=ENTER-DB-NAME;charset=utf8';
// The database username
$_config['db_user'] = 'ENTER-DB-USER';
// The database password
$_config['db_pass'] = 'ENTER-DB-PASS';
/*
|--------------------------------------------------------------------------
| Node Configuration
|--------------------------------------------------------------------------
*/
/**
* Miner config
*/
$_config['miner']=false;
$_config['miner_public_key']="";
$_config['miner_private_key']="";
$_config['miner_cpu']=0;
/**
* Generator config
*/
$_config['generator']=false;
$_config['generator_public_key']="";
$_config['generator_private_key']="";
/**
* Allow web admin of node
*/
$_config['admin']=false;
$_config['admin_password']='';
/**
* Masternode configuration
*/
$_config['masternode']=false;
$_config['masternode_public_key']="";
$_config['masternode_private_key']="";
/**
* Configuration for decentralized apps
*/
$_config['dapps']=false;
$_config['dapps_public_key']="";
$_config['dapps_private_key']="";
$_config['dapps_anonymous']=false;
$_config['dapps_disable_auto_propagate']=true;
/**
* Homepage Customization
*/
/*
$_config['homepage_apps'] = [
"explorer" => [
"title" => "Explorer",
"url" => "/apps/explorer",
"icon_type" => "fa",
"icon" => "fas fa-binoculars",
"condition" => true
],
"docs" => [
"title" => "Docs",
"url" => "/apps/docs",
"icon_type" => "fa",
"icon" => "fas fa-file-alt",
"condition" => true
]
];
*/