forked from agentejo/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
41 lines (33 loc) · 1.48 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
<?php
// make sure that $_SERVER['DOCUMENT_ROOT'] exists and is set correctly
$docsroot = str_replace(DIRECTORY_SEPARATOR, '/', isset($_SERVER['DOCUMENT_ROOT']) ? realpath($_SERVER['DOCUMENT_ROOT']) : dirname(__DIR__));
$servername = isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : 'localhost';
return [
"app.name" => "Cockpit",
"session.name" => "cockpitsession",
"sec-key" => "c3b40c4c-db44-s5h7-a814-b4931a15e5e1",
"base_url" => "/".ltrim(str_replace($docsroot, '', str_replace(DIRECTORY_SEPARATOR, '/', __DIR__)), "/"),
"base_route" => "/".ltrim(str_replace($docsroot, '', str_replace(DIRECTORY_SEPARATOR, '/', __DIR__)).'/index.php', "/"),
"i18n" => "en",
"docs_root" => $docsroot,
"database" => [ "server" => "mongolite://".(__DIR__.'/storage/data'), "options" => ["db" => "cockpitdb"] ],
/* use mongodb as db storage
"database" => [ "server" => "mongodb://localhost:27017", "options" => ["db" => "cockpitdb"] ],
*/
"mailer" => [
"from" => "info@{$servername}",
"transport" => "mail"
],
/* mailer smtp settings
"mailer" => [
"from" => "[email protected]",
"transport" => "smtp",
"host" => "",
"user" => "",
"password" => "xxxxxx",
"port" => 25,
"auth" => true,
"encryption"=> "" // '', ssl' or 'tls'
]
*/
];