-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
54 lines (47 loc) · 2.89 KB
/
config.php
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
<?php
/**
* @author Jan
* @link https://github.com/lepetitjan/rise-checker
* @license https://github.com/lepetitjan/rise-checker/blob/master/LICENSE
*/
/* GENERAL CONFIG
__________________________ */
// You should have installed Rise-Checker as normal user, so the line below should work by default.
// However, if you installed as root (please don't..) change the path below to $homeDir = "/root/";
$homeDir = "/home/".get_current_user()."/";
// You may leave the settings below as they are...
$date = date("Y-m-d H:i:s"); // Current date
$pathtoapp = $homeDir."rise-node/"; // Full path to your rise installation
$baseDir = dirname(__FILE__)."/"; // Folder which contains THIS file
$lockfile = $baseDir."checkdelegate.lock"; // Name of our lock file
$database = $baseDir."check_fork.sqlite3"; // Database name to use
$table = "forks"; // Table name to use
$msg = "\"cause\":3"; // Message that is printed when forked
$riselog = $pathtoapp."logs/rise.log"; // Needs to be a FULL path, so not ~/rise-node
$linestoread = 30; // How many lines to read from the end of $riselog
$max_count = 3; // How may times $msg may occur
$okayMsg = "√"; // 'Okay' message from rise_manager.bash
// Consensus settings
$consensusEnable= false; // Enable consensus check? Be sure to check $nodes first..
$master = true; // Is this your master node? True/False
$masternode = "https://127.0.0.1"; // Master node with SSL
$masterport = 5556; // Master port with SSL
$slavenode = "https://myslaveip"; // Slave node with SSL
$slaveport = 5556; // Slave port with SSL
$threshold = 50; // Percentage of consensus threshold
$apiHost = "$masternode:$masterport"; // Used to calculate $publicKey by $secret. Use $masternode or $slavenode
$secret = array(""); // Add your secrets here. If you want to forge multiple, add extra to the array.
// Snapshot settings
$snapshotDir = $homeDir."rise-snapshot/"; // Base folder of rise-snapshot
$createsnapshot = true; // Do you want to create daily snapshots?
$max_snapshots = 3; // How many snapshots to preserve? (in days)
// Log file rotation
$logfile = $baseDir."logs/checkdelegate.log"; // The location of your log file (see section crontab on Github)
$max_logfiles = 3; // How many log files to preserve? (in days)
$logsize = 5242880; // Max file size, default is 5 MB
// Telegram Bot
$telegramId = ""; // Your Telegram ID
$telegramApiKey = ""; // Your Telegram API key
$telegramEnable = false; // Change to true to enable Telegram Bot
$telegramSendMessage = "https://api.telegram.org/bot$telegramApiKey/sendMessage"; // Full URL to post message
?>