/
config.template.php
52 lines (40 loc) · 1.42 KB
/
config.template.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
<?php
// CONFIG: config.php
/*
Servers are defined as an array
[ Name, IP/Socket, Port, Password ]
Name (string): name shown in drop-down list (also used for command mapping)
IP/Socket (string): IP address or socket of the server
Port (integer): port of server, use -1 for socket
Password entry (string|array): credentials for the server (optional)
*/
$servers = [
[ 'Local', '127.0.0.1', 6379 ],
[ 'Local socket', 'unix:///var/run/redis.sock', -1 ],
[ 'Local with password', '127.0.0.1', 6379, 'password_here' ],
[ 'Local with user and password', '127.0.0.1', 6379, ['username', 'password_here'] ],
];
// Show a 'Flush' button for databases
define("FLUSHDB", true);
// Ask for confirmation before flushing database
define("CONFIRM_FLUSHDB", true);
// Show a 'Flush All' button for the instance
define("FLUSHALL", true);
// Ask for confirmation before flushing the entire instance
define("CONFIRM_FLUSHALL", true);
// Position of status line: "bottom" or "top"
define("STATUS_LINE", "bottom");
// Show a 'Check for update' button
define("CHECK_FOR_UPDATE", true);
// Command Mapping
$command = [
'Local' => [ // must be a server name (first field in server array, name shown in drop-down list)
'FLUSHDB' => '',
'FLUSHALL' => '',
'AUTH' => '',
'INFO' => '',
],
];
// debug mode - you don't want to set this!
define("DEBUG", false);
// END CONFIG