Skip to content

Commit 4be9ef7

Browse files
committed
Update config.dist.php
1 parent 7b30043 commit 4be9ef7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

config.dist.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
return [
1414
// 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.
1616
'dashboards' => [
1717
RobiNN\Pca\Dashboards\Server\ServerDashboard::class,
1818
RobiNN\Pca\Dashboards\Redis\RedisDashboard::class,
@@ -24,7 +24,7 @@
2424
[
2525
'name' => 'Localhost', // Optional
2626
'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
2828
//'database' => 0, // Optional
2929
//'password' => '', // Optional
3030
//'path' => '/var/run/redis/redis-server.sock', // Optional
@@ -34,14 +34,15 @@
3434
[
3535
'name' => 'Localhost', // Optional
3636
'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
3838
//'path' => '/var/run/memcached/memcached.sock', // Optional
3939
],
4040
],
4141
'timeformat' => 'd. m. Y H:i:s',
4242
'twigdebug' => false,
43-
// Auth function, this is an example with http auth, but you can add own logic
4443
/*'auth' => static function (): void {
44+
// Example of authentication with http auth.
45+
4546
$username = 'admin';
4647
$password = 'pass';
4748
@@ -56,6 +57,8 @@
5657
exit();
5758
}
5859
60+
// Use this section for the logout.
61+
// It will display a link in the sidebar.
5962
if (isset($_GET['logout'])) {
6063
$is_https = (
6164
(isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] === 1)) ||

0 commit comments

Comments
 (0)