phpvms/resources/stubs/installer/config.stub

114 lines
2.9 KiB
Plaintext
Raw Normal View History

<?php
/**
* This file overrides any of the config files in the /config directory.
* The root key is the name of the file, and then the structure within.
* The config is merged, so only include what you want to override
*/
return [
// Overrides config/app.php
'app' => [
'name' => '$SITE_NAME$',
'url' => '$SITE_URL$',
// When live, 'env' should be 'prod'
'env' => 'prod',
// debug as true shows the Laravel debug bar, which is helpful for
// debugging templates and other internals
'debug' => true,
'debug_toolbar' => false,
],
// Overrides config/phpvms.php
'phpvms' => [
],
//
// Other settings and configuration you might not need to modify
//
2018-03-16 23:50:04 +08:00
// Overrides config/cache.php
'cache' => [
'default' => '$CACHE_DRIVER$',
'prefix' => '$CACHE_PREFIX$',
],
2018-03-17 00:38:06 +08:00
/*
* You can get a captcha key from here:
* https://www.google.com/recaptcha/admin
*/
2018-03-16 23:50:04 +08:00
'captcha' => [
2018-03-17 00:38:06 +08:00
'enabled' => false,
2018-03-16 23:50:04 +08:00
'sitekey' => '',
'secret' => '',
2018-03-17 00:38:06 +08:00
# Attributes can be found here:
# https://developers.google.com/recaptcha/docs/display#render_param
'attributes' => [
'data-theme' => 'light',
],
2018-03-16 23:50:04 +08:00
],
// Overrides config/database.php
'database' => [
'default' => env('DB_CONNECTION', '$DB_CONN$'),
'connections' => [
'mysql' => [
'host' => env('DB_HOST', '$DB_HOST$'),
'port' => $DB_PORT$,
'database' => '$DB_NAME$',
'username' => '$DB_USER$',
'password' => '$DB_PASS$',
'prefix' => '$DB_PREFIX$',
'prefix_indexes' => true,
],
],
],
// Overrides config/logging.php
2018-02-20 01:09:56 +08:00
'logging' => [
'default' => 'stack',
2018-02-20 01:09:56 +08:00
'channels' => [
'single' => ['level' => 'debug'],
'daily' => ['level' => 'debug'],
],
],
// Overrides config/mail.php
'mail' => [
'default' => 'mail', # Default is to use the mail() fn
2020-05-16 06:20:16 +08:00
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => '',
'port' => '',
'encryption' => '',
'username' => '',
'password' => '',
'timeout' => null,
],
'mailgun' => [
'transport' => 'mailgun',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => '/usr/sbin/sendmail -bs',
],
],
'from' => [
2020-05-16 06:20:16 +08:00
'name' => 'phpVMS No-Reply',
'address' => 'no-reply@phpvms.net',
],
],
// Overrides config/session.php
2018-02-03 10:39:51 +08:00
'session' => [
'default' => 'database',
2018-02-03 10:39:51 +08:00
'lifetime' => 60 * 24, # 24 hours
],
];