Skip to content

Commit

Permalink
Updates to v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eugabrielsilva committed Jul 26, 2024
1 parent e0264d7 commit 0fd8f1d
Show file tree
Hide file tree
Showing 8 changed files with 225 additions and 219 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
# WARNING: This file should not be commited to your application source control as it may contain sensitive data.
# ---------------------------------------------------------------------------------------------------------------

# Current environment name
# Current environment name and URL
APP_ENV=development
APP_URL=http://localhost

# Application debug
APP_DEBUG=true
Expand Down
294 changes: 149 additions & 145 deletions app/config/Config.php
Original file line number Diff line number Diff line change
@@ -1,129 +1,133 @@
<?php

/*
--------------------------------
Application configuration
--------------------------------
In this file you can define your global application configuration.
Some settings are retrieved from the environment config file. Be sure to rename ".env.example" to ".env" first.
/*
--------------------------------
Application configuration
--------------------------------
In this file you can define your global application configuration.
Some settings are retrieved from the environment config file. Be sure to rename ".env.example" to ".env" first.
-----------------------------------------------------------------------------------------
WARNING: Sensitive data should never be stored here! Use the environment config instead.
-----------------------------------------------------------------------------------------
*/
-----------------------------------------------------------------------------------------
WARNING: Sensitive data should never be stored here! Use the environment config instead.
-----------------------------------------------------------------------------------------
*/

return [
return [

// Current environment name
'env' => Env::get('APP_ENV', 'development'),
// Current environment name
'env' => Env::get('APP_ENV', 'development'),

// Application maintenance mode
'maintenance' => [
// Application maintenance mode
'maintenance' => [

// Enable maintenance mode
'enabled' => filter_var(
Env::get('APP_MAINTENANCE', false),
FILTER_VALIDATE_BOOLEAN),
// Enable maintenance mode
'enabled' => filter_var(
Env::get('APP_MAINTENANCE', false),
FILTER_VALIDATE_BOOLEAN
),

// Maintenance mode bypass key
'bypass_key' => Env::get('MAINTENANCE_KEY')
// Maintenance mode bypass key
'bypass_key' => Env::get('MAINTENANCE_KEY')

],
],

// Skeltch templating engine
'skeltch' => [
// Skeltch templating engine
'skeltch' => [

// Enable Skeltch compiler
'enabled' => true,
// Enable Skeltch compiler
'enabled' => true,

// Enable views caching
'cache' => true,
// Enable views caching
'cache' => true,

// Cache files location
'path' => sys_get_temp_dir()
// Cache files location
'path' => sys_get_temp_dir()

],
],

// Application error reporting
'error_reporting' => [
// Application error reporting
'error_reporting' => [

// Error reporting level
'level' => filter_var(
Env::get('APP_DEBUG', true),
FILTER_VALIDATE_BOOLEAN) ? E_ALL : 0,
// Error reporting level
'level' => filter_var(
Env::get('APP_DEBUG', true),
FILTER_VALIDATE_BOOLEAN
) ? E_ALL : 0,

// Enable error logging
'logging' => true,
// Enable error logging
'logging' => true,

// Error log file location
'file' => Util::location('../error.log')
// Error log file location
'file' => Util::location('../error.log')

],
],

// Application session management
'session' => [
// Application session management
'session' => [

// Session cookie name
'name' => 'app_session',
// Session cookie name
'name' => 'app_session',

// Unused session lifetime
'lifetime' => 120,
// Unused session lifetime
'lifetime' => 120,

// Number of requests when to run the garbage collector
'gc_cleaning' => 50,
// Number of requests when to run the garbage collector
'gc_cleaning' => 50,

// Session files location
'path' => sys_get_temp_dir(),
// Session files location
'path' => sys_get_temp_dir(),

// Allow session usage only in secure connections (https)
'secure' => false,
// Allow session usage only in secure connections (https)
'secure' => false,

// Restrict session access to the HTTP protocol only
'restrict' => true
// Restrict session access to the HTTP protocol only
'restrict' => true

],
],

// Application cookies management
'cookies' => [
// Application cookies management
'cookies' => [

// Allow cookies usage only through secure connections (https)
'secure' => false,
// Allow cookies usage only through secure connections (https)
'secure' => false,

// Restrict cookies access to the HTTP protocol only
'restrict' => true
// Restrict cookies access to the HTTP protocol only
'restrict' => true

],
],

// Application secret keys
'secret' => [
// Application secret keys
'secret' => [

// Key used in encrypting functions
'app_key' => Env::get('APP_KEY'),
// Key used in encrypting functions
'app_key' => Env::get('APP_KEY'),

// Token used in encrypting functions
'app_token' => Env::get('APP_TOKEN')
// Token used in encrypting functions
'app_token' => Env::get('APP_TOKEN')

],
],

// Application database connection settings
'database' => [
// Application database connection settings
'database' => [

// Default connection
'default' => [
'host' => Env::get('DB_HOST', 'localhost'),
'username' => Env::get('DB_USERNAME', 'root'),
'password' => Env::get('DB_PASSWORD', ''),
'db' => Env::get('DB_DATABASE', 'glowie'),
'port' => Env::get('DB_PORT', 3306),
'charset' => 'utf8',
'strict' => false
]
// Default connection
'default' => [
'host' => Env::get('DB_HOST', 'localhost'),
'username' => Env::get('DB_USERNAME', 'root'),
'password' => Env::get('DB_PASSWORD', ''),
'db' => Env::get('DB_DATABASE', 'glowie'),
'port' => Env::get('DB_PORT', 3306),
'charset' => 'utf8',
'strict' => false
]

],
],

// Authentication settings
'auth' => [
// Authentication settings
'auth' => [

// Default auth guard
'default' => [
// Users model
'model' => null,

Expand All @@ -132,88 +136,88 @@

// Password field name
'password_field' => 'password'
]

],

// Migrations settings
'migrations' => [
],

// Migrations history table name
'table' => 'migrations'
// Migrations settings
'migrations' => [

],
// Migrations history table name
'table' => 'migrations'

// Cache settings
'cache' => [
],

// Cache file path
'path' => sys_get_temp_dir() . '/' . md5(Util::location()) . '.tmp'
// Cache settings
'cache' => [

],
// Cache file path
'path' => sys_get_temp_dir() . '/' . md5(Util::location()) . '.tmp'

// Cross-Origin Resource Sharing (CORS) settings
'cors' => [
],

// Enable CORS headers
'enabled' => true,
// Cross-Origin Resource Sharing (CORS) settings
'cors' => [

// List of allowed methods (use * for all)
'allowed_methods' => ['*'],
// Enable CORS headers
'enabled' => true,

// List of allowed origins (use * for all)
'allowed_origins' => ['*'],
// List of allowed methods (use * for all)
'allowed_methods' => ['*'],

// List of allowed headers (use * for all)
'allowed_headers' => ['*'],
// List of allowed origins (use * for all)
'allowed_origins' => ['*'],

// List of exposed headers
'exposed_headers' => [],
// List of allowed headers (use * for all)
'allowed_headers' => ['*'],

// Preflight request cache time
'max_age' => 0,
// List of exposed headers
'exposed_headers' => [],

// Allow credentials to be exposed
'allow_credentials' => false
// Preflight request cache time
'max_age' => 0,

],
// Allow credentials to be exposed
'allow_credentials' => false

// Application plugins
'plugins' => [],
],

// Firefly Sandbox settings
'sandbox' => [
// Application plugins
'plugins' => [],

// Sandbox class alias list
'alias' => [
'Factory' => \Glowie\Core\Database\Factory::class,
'Kraken' => \Glowie\Core\Database\Kraken::class,
'Model' => \Glowie\Core\Database\Model::class,
'Skeleton' => \Glowie\Core\Database\Skeleton::class,
'Rails' => \Glowie\Core\Http\Rails::class,
'Cache' => \Glowie\Core\Tools\Cache::class,
'Crawler' => \Glowie\Core\Tools\Crawler::class,
'Mailer' => \Glowie\Core\Tools\Mailer::class,
'Validator' => \Glowie\Core\Tools\Validator::class,
'Collection' => \Glowie\Core\Collection::class,
'Element' => \Glowie\Core\Element::class
]
// Firefly Sandbox settings
'sandbox' => [

],
// Sandbox class alias list
'alias' => [
'Factory' => \Glowie\Core\Database\Factory::class,
'Kraken' => \Glowie\Core\Database\Kraken::class,
'Model' => \Glowie\Core\Database\Model::class,
'Skeleton' => \Glowie\Core\Database\Skeleton::class,
'Rails' => \Glowie\Core\Http\Rails::class,
'Queue' => \Glowie\Core\Queue\Queue::class,
'Cache' => \Glowie\Core\Tools\Cache::class,
'Crawler' => \Glowie\Core\Tools\Crawler::class,
'Mailer' => \Glowie\Core\Tools\Mailer::class,
'Validator' => \Glowie\Core\Tools\Validator::class,
'Collection' => \Glowie\Core\Collection::class,
'Element' => \Glowie\Core\Element::class
]

// Application miscellaneous settings
'other' => [
],

// Application URL (for CLI route mocking only)
'url' => 'http://localhost',
// Application miscellaneous settings
'other' => [

// Default language
'language' => 'en',
// Application URL (for CLI route mocking only)
'url' => Env::get('APP_URL', 'http://localhost'),

// Default timezone
'timezone' => 'America/Sao_Paulo'
// Default language
'language' => 'en',

]
// Default timezone
'timezone' => 'America/Sao_Paulo'

];
]

?>
];
Loading

0 comments on commit 0fd8f1d

Please sign in to comment.