diff options
Diffstat (limited to 'main/app/sprinkles/core/config')
-rw-r--r-- | main/app/sprinkles/core/config/default.php | 366 | ||||
-rw-r--r-- | main/app/sprinkles/core/config/dev.php | 58 | ||||
-rw-r--r-- | main/app/sprinkles/core/config/production.php | 80 | ||||
-rw-r--r-- | main/app/sprinkles/core/config/testing.php | 46 |
4 files changed, 275 insertions, 275 deletions
diff --git a/main/app/sprinkles/core/config/default.php b/main/app/sprinkles/core/config/default.php index 7e861df..1a80538 100644 --- a/main/app/sprinkles/core/config/default.php +++ b/main/app/sprinkles/core/config/default.php @@ -1,183 +1,183 @@ -<?php - -/** - * Core configuration file for UserFrosting. You must override/extend this in your site's configuration file. - * - * Sensitive credentials should be stored in an environment variable or your .env file. - * Database password: DB_PASSWORD - * SMTP server password: SMTP_PASSWORD - */ - -return [ - 'address_book' => [ - 'admin' => [ - 'email' => getenv('SMTP_USER') ?: NULL, - 'name' => 'Site Administrator' - ] - ], - 'alert' => [ - 'storage' => 'session', // Set to one of `cache` or `session` - 'key' => 'site.alerts', // the key to use to store flash messages - ], - 'assets' => [ - 'compiled' => [ - 'path' => 'assets', - 'schema' => 'bundle.result.json' - ], - 'raw' => [ - 'path' => 'assets-raw', - 'schema' => 'asset-bundles.json' - ], - 'use_raw' => TRUE - ], - 'cache' => [ - 'driver' => 'file', // Set to one of `file`, `memcached`, `redis` - 'prefix' => 'userfrosting', // Edit prefix to something unique when multiple instance of memcached/redis are used on the same server - 'memcached' => [ - 'host' => '127.0.0.1', - 'port' => 11211, - 'weight' => 100 - ], - 'redis' => [ - 'host' => '127.0.0.1', - 'password' => NULL, - 'port' => 6379, - 'database' => 0 - ], - 'twig' => FALSE - ], - // CSRF middleware settings (see https://github.com/slimphp/Slim-Csrf) - 'csrf' => [ - 'name' => 'csrf', - 'storage_limit' => 200, - 'strength' => 16, - 'persistent_token' => TRUE, - // A list of url paths to ignore CSRF checks on - 'blacklist' => [ - // URL paths will be matched against each regular expression in this list. - // Each regular expression should map to an array of methods. - // Regular expressions will be delimited with ~ in preg_match, so if you - // have routes with ~ in them, you must escape this character in your regex. - // Also, remember to use ^ when you only want to match the beginning of a URL path! - ] - ], - 'db' => [ - 'default' => [ - 'driver' => getenv('DB_DRIVER') ?: 'mysql', - 'host' => getenv('DB_HOST') ?: NULL, - 'port' => getenv('DB_PORT') ?: NULL, - 'database' => getenv('DB_NAME') ?: NULL, - 'username' => getenv('DB_USER') ?: NULL, - 'password' => getenv('DB_PASSWORD') ?: NULL, - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '' - ] - ], - 'debug' => [ - 'queries' => FALSE, - 'smtp' => FALSE, - 'twig' => FALSE - ], - 'mail' => [ - 'mailer' => 'smtp', // Set to one of 'smtp', 'mail', 'qmail', 'sendmail' - 'host' => getenv('SMTP_HOST') ?: NULL, - 'port' => 465, - 'auth' => TRUE, - 'secure' => 'ssl', - 'username' => getenv('SMTP_USER') ?: NULL, - 'password' => getenv('SMTP_PASSWORD') ?: NULL, - 'smtp_debug' => 4, - 'message_options' => [ - 'CharSet' => 'UTF-8', - 'isHtml' => TRUE, - 'Timeout' => 15 - ] - ], - // Filesystem paths - 'path' => [ - 'document_root' => str_replace(DIRECTORY_SEPARATOR, \UserFrosting\DS, $_SERVER['DOCUMENT_ROOT']), - 'public_relative' => dirname($_SERVER['SCRIPT_NAME']) // The location of `index.php` relative to the document root. Use for sites installed in subdirectories of your web server's document root. - ], - 'session' => [ - 'handler' => 'file', - // Config values for when using db-based sessions - 'database' => [ - 'table' => 'sessions' - ], - 'name' => 'uf4', - 'minutes' => 120, - 'cache_limiter' => FALSE, - // Decouples the session keys used to store certain session info - 'keys' => [ - 'csrf' => 'site.csrf', // the key (prefix) used to store an ArrayObject of CSRF tokens. - ] - ], - // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings - 'settings' => [ - 'displayErrorDetails' => TRUE - ], - // "Site" settings that are automatically passed to Twig - 'site' => [ - 'AdminLTE' => [ - 'skin' => 'blue' - ], - 'analytics' => [ - 'google' => [ - 'code' => 'UA-109245179-2', - 'enabled' => TRUE - ] - ], - 'author' => 'Author', - 'csrf' => NULL, // Do not set this variable. The core Twig extension will override it with values from the CSRF service. - 'debug' => [ - 'ajax' => FALSE, - 'info' => TRUE - ], - 'locales' => [ - // Should be ordered according to https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers, - // with the exception of English, which as the default language comes first. - 'available' => [ - 'en_US' => 'English', - 'zh_CN' => '中文', - 'es_ES' => 'Español', - 'ar' => 'العربية', - 'pt_PT' => 'Português', - 'ru_RU' => 'русский', - 'tlh' => 'tlhIngan Hol', - 'de_DE' => 'Deutsch', - 'fr_FR' => 'Français', - 'tr' => 'Türk', - 'it_IT' => 'Italiano', - 'th_TH' => 'ภาษาไทย', - 'fa' => 'فارسی' - ], - // This can be a comma-separated list, to load multiple fallback locales - 'default' => 'en_US' - ], - 'title' => 'BEAM-Messenger', - // Global ufTable settings - 'uf_table' => [ - 'use_loading_transition' => TRUE - ], - // URLs - 'uri' => [ - 'base' => [ - 'host' => isset($_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '/') : 'localhost', - 'scheme' => empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off' ? 'http' : 'https', - 'port' => isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : NULL, - 'path' => isset($_SERVER['SCRIPT_NAME']) ? trim(dirname($_SERVER['SCRIPT_NAME']), '/\\') : '' - ], - 'author' => 'https://marvinborner.me', - 'publisher' => 'https://marvinborner.me' - ] - ], - 'php' => [ - 'timezone' => 'Europe/Berlin', - 'error_reporting' => E_ALL, // Development - report all errors and suggestions - 'display_errors' => 'true', - 'log_errors' => 'true', - // Let PHP itself render errors natively. Useful if a fatal error is raised in our custom shutdown handler. - 'display_errors_native' => 'true' - ] -]; +<?php
+
+/**
+ * Core configuration file for UserFrosting. You must override/extend this in your site's configuration file.
+ *
+ * Sensitive credentials should be stored in an environment variable or your .env file.
+ * Database password: DB_PASSWORD
+ * SMTP server password: SMTP_PASSWORD
+ */
+
+return [
+ 'address_book' => [
+ 'admin' => [
+ 'email' => getenv('SMTP_USER') ?: NULL,
+ 'name' => 'Site Administrator'
+ ]
+ ],
+ 'alert' => [
+ 'storage' => 'session', // Set to one of `cache` or `session`
+ 'key' => 'site.alerts', // the key to use to store flash messages
+ ],
+ 'assets' => [
+ 'compiled' => [
+ 'path' => 'assets',
+ 'schema' => 'bundle.result.json'
+ ],
+ 'raw' => [
+ 'path' => 'assets-raw',
+ 'schema' => 'asset-bundles.json'
+ ],
+ 'use_raw' => TRUE
+ ],
+ 'cache' => [
+ 'driver' => 'file', // Set to one of `file`, `memcached`, `redis`
+ 'prefix' => 'userfrosting', // Edit prefix to something unique when multiple instance of memcached/redis are used on the same server
+ 'memcached' => [
+ 'host' => '127.0.0.1',
+ 'port' => 11211,
+ 'weight' => 100
+ ],
+ 'redis' => [
+ 'host' => '127.0.0.1',
+ 'password' => NULL,
+ 'port' => 6379,
+ 'database' => 0
+ ],
+ 'twig' => FALSE
+ ],
+ // CSRF middleware settings (see https://github.com/slimphp/Slim-Csrf)
+ 'csrf' => [
+ 'name' => 'csrf',
+ 'storage_limit' => 200,
+ 'strength' => 16,
+ 'persistent_token' => TRUE,
+ // A list of url paths to ignore CSRF checks on
+ 'blacklist' => [
+ // URL paths will be matched against each regular expression in this list.
+ // Each regular expression should map to an array of methods.
+ // Regular expressions will be delimited with ~ in preg_match, so if you
+ // have routes with ~ in them, you must escape this character in your regex.
+ // Also, remember to use ^ when you only want to match the beginning of a URL path!
+ ]
+ ],
+ 'db' => [
+ 'default' => [
+ 'driver' => getenv('DB_DRIVER') ?: 'mysql',
+ 'host' => getenv('DB_HOST') ?: NULL,
+ 'port' => getenv('DB_PORT') ?: NULL,
+ 'database' => getenv('DB_NAME') ?: NULL,
+ 'username' => getenv('DB_USER') ?: NULL,
+ 'password' => getenv('DB_PASSWORD') ?: NULL,
+ 'charset' => 'utf8',
+ 'collation' => 'utf8_unicode_ci',
+ 'prefix' => ''
+ ]
+ ],
+ 'debug' => [
+ 'queries' => FALSE,
+ 'smtp' => FALSE,
+ 'twig' => FALSE
+ ],
+ 'mail' => [
+ 'mailer' => 'smtp', // Set to one of 'smtp', 'mail', 'qmail', 'sendmail'
+ 'host' => getenv('SMTP_HOST') ?: NULL,
+ 'port' => 465,
+ 'auth' => TRUE,
+ 'secure' => 'ssl',
+ 'username' => getenv('SMTP_USER') ?: NULL,
+ 'password' => getenv('SMTP_PASSWORD') ?: NULL,
+ 'smtp_debug' => 4,
+ 'message_options' => [
+ 'CharSet' => 'UTF-8',
+ 'isHtml' => TRUE,
+ 'Timeout' => 15
+ ]
+ ],
+ // Filesystem paths
+ 'path' => [
+ 'document_root' => str_replace(DIRECTORY_SEPARATOR, \UserFrosting\DS, $_SERVER['DOCUMENT_ROOT']),
+ 'public_relative' => dirname($_SERVER['SCRIPT_NAME']) // The location of `index.php` relative to the document root. Use for sites installed in subdirectories of your web server's document root.
+ ],
+ 'session' => [
+ 'handler' => 'file',
+ // Config values for when using db-based sessions
+ 'database' => [
+ 'table' => 'sessions'
+ ],
+ 'name' => 'uf4',
+ 'minutes' => 120,
+ 'cache_limiter' => FALSE,
+ // Decouples the session keys used to store certain session info
+ 'keys' => [
+ 'csrf' => 'site.csrf', // the key (prefix) used to store an ArrayObject of CSRF tokens.
+ ]
+ ],
+ // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings
+ 'settings' => [
+ 'displayErrorDetails' => TRUE
+ ],
+ // "Site" settings that are automatically passed to Twig
+ 'site' => [
+ 'AdminLTE' => [
+ 'skin' => 'blue'
+ ],
+ 'analytics' => [
+ 'google' => [
+ 'code' => 'UA-109245179-2',
+ 'enabled' => TRUE
+ ]
+ ],
+ 'author' => 'Author',
+ 'csrf' => NULL, // Do not set this variable. The core Twig extension will override it with values from the CSRF service.
+ 'debug' => [
+ 'ajax' => FALSE,
+ 'info' => TRUE
+ ],
+ 'locales' => [
+ // Should be ordered according to https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers,
+ // with the exception of English, which as the default language comes first.
+ 'available' => [
+ 'en_US' => 'English',
+ 'zh_CN' => '中文',
+ 'es_ES' => 'Español',
+ 'ar' => 'العربية',
+ 'pt_PT' => 'Português',
+ 'ru_RU' => 'русский',
+ 'tlh' => 'tlhIngan Hol',
+ 'de_DE' => 'Deutsch',
+ 'fr_FR' => 'Français',
+ 'tr' => 'Türk',
+ 'it_IT' => 'Italiano',
+ 'th_TH' => 'ภาษาไทย',
+ 'fa' => 'فارسی'
+ ],
+ // This can be a comma-separated list, to load multiple fallback locales
+ 'default' => 'en_US'
+ ],
+ 'title' => 'BEAM-Messenger',
+ // Global ufTable settings
+ 'uf_table' => [
+ 'use_loading_transition' => TRUE
+ ],
+ // URLs
+ 'uri' => [
+ 'base' => [
+ 'host' => isset($_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '/') : 'localhost',
+ 'scheme' => empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off' ? 'http' : 'https',
+ 'port' => isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : NULL,
+ 'path' => isset($_SERVER['SCRIPT_NAME']) ? trim(dirname($_SERVER['SCRIPT_NAME']), '/\\') : ''
+ ],
+ 'author' => 'https://marvinborner.me',
+ 'publisher' => 'https://marvinborner.me'
+ ]
+ ],
+ 'php' => [
+ 'timezone' => 'Europe/Berlin',
+ 'error_reporting' => E_ALL, // Development - report all errors and suggestions
+ 'display_errors' => 'true',
+ 'log_errors' => 'true',
+ // Let PHP itself render errors natively. Useful if a fatal error is raised in our custom shutdown handler.
+ 'display_errors_native' => 'true'
+ ]
+];
diff --git a/main/app/sprinkles/core/config/dev.php b/main/app/sprinkles/core/config/dev.php index 63aeeab..a4429ae 100644 --- a/main/app/sprinkles/core/config/dev.php +++ b/main/app/sprinkles/core/config/dev.php @@ -1,30 +1,30 @@ -<?php - -/** - * Default development config file for UserFrosting. Sets up UserFrosting for easier development. - * - */ - -return [ - 'assets' => [ - 'use_raw' => TRUE - ], - 'cache' => [ - 'twig' => FALSE - ], - 'debug' => [ - 'twig' => TRUE, - 'auth' => TRUE, - 'smtp' => TRUE - ], - // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings - 'settings' => [ - 'displayErrorDetails' => TRUE - ], - 'site' => [ - 'debug' => [ - 'ajax' => TRUE, - 'info' => TRUE - ] - ] +<?php
+
+/**
+ * Default development config file for UserFrosting. Sets up UserFrosting for easier development.
+ *
+ */
+
+return [
+ 'assets' => [
+ 'use_raw' => TRUE
+ ],
+ 'cache' => [
+ 'twig' => FALSE
+ ],
+ 'debug' => [
+ 'twig' => TRUE,
+ 'auth' => TRUE,
+ 'smtp' => TRUE
+ ],
+ // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings
+ 'settings' => [
+ 'displayErrorDetails' => TRUE
+ ],
+ 'site' => [
+ 'debug' => [
+ 'ajax' => TRUE,
+ 'info' => TRUE
+ ]
+ ]
];
\ No newline at end of file diff --git a/main/app/sprinkles/core/config/production.php b/main/app/sprinkles/core/config/production.php index 8b970a7..1648679 100644 --- a/main/app/sprinkles/core/config/production.php +++ b/main/app/sprinkles/core/config/production.php @@ -1,40 +1,40 @@ -<?php - -/** - * Default production config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings. - * - */ - -return [ - 'assets' => [ - 'use_raw' => FALSE - ], - 'cache' => [ - 'twig' => TRUE - ], - 'debug' => [ - 'twig' => FALSE, - 'auth' => FALSE, - 'smtp' => FALSE - ], - // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings - 'settings' => [ - 'routerCacheFile' => \UserFrosting\ROOT_DIR . '/' . \UserFrosting\APP_DIR_NAME . '/' . \UserFrosting\CACHE_DIR_NAME . '/' . 'routes.cache', - 'displayErrorDetails' => FALSE - ], - 'site' => [ - 'analytics' => [ - 'google' => [ - 'enabled' => TRUE - ] - ], - 'debug' => [ - 'ajax' => FALSE, - 'info' => FALSE - ] - ], - 'php' => [ - 'display_errors' => 'false', - 'log_errors' => 'true' - ] -]; +<?php
+
+/**
+ * Default production config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings.
+ *
+ */
+
+return [
+ 'assets' => [
+ 'use_raw' => FALSE
+ ],
+ 'cache' => [
+ 'twig' => TRUE
+ ],
+ 'debug' => [
+ 'twig' => FALSE,
+ 'auth' => FALSE,
+ 'smtp' => FALSE
+ ],
+ // Slim settings - see http://www.slimframework.com/docs/objects/application.html#slim-default-settings
+ 'settings' => [
+ 'routerCacheFile' => \UserFrosting\ROOT_DIR . '/' . \UserFrosting\APP_DIR_NAME . '/' . \UserFrosting\CACHE_DIR_NAME . '/' . 'routes.cache',
+ 'displayErrorDetails' => FALSE
+ ],
+ 'site' => [
+ 'analytics' => [
+ 'google' => [
+ 'enabled' => TRUE
+ ]
+ ],
+ 'debug' => [
+ 'ajax' => FALSE,
+ 'info' => FALSE
+ ]
+ ],
+ 'php' => [
+ 'display_errors' => 'false',
+ 'log_errors' => 'true'
+ ]
+];
diff --git a/main/app/sprinkles/core/config/testing.php b/main/app/sprinkles/core/config/testing.php index 4d5bb04..4bae194 100644 --- a/main/app/sprinkles/core/config/testing.php +++ b/main/app/sprinkles/core/config/testing.php @@ -1,23 +1,23 @@ -<?php - -/** - * Default testing config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings. - * - */ - -return [ - 'cache' => [ - 'illuminate' => [ - 'default' => 'array', - ] - ], - 'db' => [ - 'test_integration' => [ - 'driver' => 'sqlite', - 'database' => ':memory:', - ] - ], - 'settings' => [ - 'displayErrorDetails' => FALSE - ] -]; +<?php
+
+/**
+ * Default testing config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings.
+ *
+ */
+
+return [
+ 'cache' => [
+ 'illuminate' => [
+ 'default' => 'array',
+ ]
+ ],
+ 'db' => [
+ 'test_integration' => [
+ 'driver' => 'sqlite',
+ 'database' => ':memory:',
+ ]
+ ],
+ 'settings' => [
+ 'displayErrorDetails' => FALSE
+ ]
+];
|