|
12 | 12 |
|
13 | 13 | return [ |
14 | 14 | // The order of the items also changes the position of the sidebar links. |
15 | | - // You can comment out any item except ServerDashboard because it's default dashboard. |
| 15 | + // You can comment out (delete) any dashboard except ServerDashboard because it's a default dashboard. |
16 | 16 | 'dashboards' => [ |
17 | 17 | RobiNN\Pca\Dashboards\Server\ServerDashboard::class, |
18 | 18 | RobiNN\Pca\Dashboards\Redis\RedisDashboard::class, |
|
24 | 24 | [ |
25 | 25 | 'name' => 'Localhost', // Optional |
26 | 26 | 'host' => '127.0.0.1', // Optional, when a path is specified |
27 | | - 'port' => 6379, // Optional |
| 27 | + 'port' => 6379, // Optional, when the default port is used |
28 | 28 | //'database' => 0, // Optional |
29 | 29 | //'password' => '', // Optional |
30 | 30 | //'path' => '/var/run/redis/redis-server.sock', // Optional |
|
34 | 34 | [ |
35 | 35 | 'name' => 'Localhost', // Optional |
36 | 36 | 'host' => '127.0.0.1', // Optional, when a path is specified |
37 | | - 'port' => 11211, // Optional |
| 37 | + 'port' => 11211, // Optional, when the default port is used |
38 | 38 | //'path' => '/var/run/memcached/memcached.sock', // Optional |
39 | 39 | ], |
40 | 40 | ], |
41 | 41 | 'timeformat' => 'd. m. Y H:i:s', |
42 | 42 | 'twigdebug' => false, |
43 | | - // Auth function, this is an example with http auth, but you can add own logic |
44 | 43 | /*'auth' => static function (): void { |
| 44 | + // Example of authentication with http auth. |
| 45 | +
|
45 | 46 | $username = 'admin'; |
46 | 47 | $password = 'pass'; |
47 | 48 |
|
|
56 | 57 | exit(); |
57 | 58 | } |
58 | 59 |
|
| 60 | + // Use this section for the logout. |
| 61 | + // It will display a link in the sidebar. |
59 | 62 | if (isset($_GET['logout'])) { |
60 | 63 | $is_https = ( |
61 | 64 | (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] === 1)) || |
|
0 commit comments