You've already forked Traefik-Redis-Api
done. going to bed now.
This commit is contained in:
39
config.php
Normal file
39
config.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Siteworxpro\App\Helpers\Env;
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* The server configuration.
|
||||
*/
|
||||
'server' => [
|
||||
'port' => Env::get('HTTP_PORT', 9501, 'int'),
|
||||
'dev_mode' => Env::get('DEV_MODE', false, 'bool'),
|
||||
'debug' => Env::get('DEBUG', false, 'bool'),
|
||||
],
|
||||
|
||||
/**
|
||||
* The database configuration.
|
||||
*/
|
||||
'db' => [
|
||||
'driver' => Env::get('DB_DRIVER', 'pgsql'),
|
||||
'host' => Env::get('DB_HOST', 'localhost'),
|
||||
'database' => Env::get('DB_DATABASE', 'siteworxpro'),
|
||||
'username' => Env::get('DB_USERNAME', 'siteworxpro'),
|
||||
'password' => Env::get('DB_PASSWORD', 'password'),
|
||||
],
|
||||
|
||||
|
||||
'cors' => [
|
||||
'allowed_origins' => Env::get('CORS_ALLOWED_ORIGINS', 'localhost:3000'),
|
||||
'allow_credentials' => Env::get('CORS_ALLOW_CREDENTIALS', true, 'bool'),
|
||||
'max_age' => Env::get('CORS_MAX_AGE', ''),
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'host' => Env::get('REDIS_HOST', 'localhost'),
|
||||
'port' => Env::get('REDIS_PORT', 6379, 'int'),
|
||||
'database' => Env::get('REDIS_DATABASE', 0, 'int'),
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user