-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.php
More file actions
36 lines (31 loc) · 1.38 KB
/
Copy path.env.php
File metadata and controls
36 lines (31 loc) · 1.38 KB
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
<?php
/*
* This file is part of API Project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$_ENV['ENVIRONMENT'] = 'development';
//$_ENV['ENVIRONMENT'] = 'production';
// API ------------------------------------------------------------------------
$_ENV['app.default.origin'] = 'http://localhost:8010';
// Cache ----------------------------------------------------------------------
$_ENV['cache.default.class'] = Framework\Cache\FilesCache::class;
$_ENV['cache.default.configs'] = [
'directory' => __DIR__ . '/storage/cache',
];
$_ENV['cache.default.prefix'] = null;
// Database -------------------------------------------------------------------
$_ENV['database.default.config.username'] = 'root';
$_ENV['database.default.config.password'] = 'password';
$_ENV['database.default.config.schema'] = 'api';
$_ENV['database.default.config.host'] = 'localhost';
// Logger ---------------------------------------------------------------------
$_ENV['logger.default.class'] = Framework\Log\Loggers\MultiFileLogger::class;
$_ENV['logger.default.destination'] = __DIR__ . '/storage/logs';
$_ENV['logger.default.level'] = Framework\Log\LogLevel::DEBUG;
// Request --------------------------------------------------------------------
$_ENV['request.default.allowed_hosts'] = [
// 'localhost',
// 'localhost:8000'
];