Redis is no longer the default

This commit is contained in:
Lance Pioch 2024-04-06 10:17:17 -04:00
parent 06f66027dd
commit 2e3d17b94a
2 changed files with 11 additions and 11 deletions

View File

@ -23,7 +23,7 @@ REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379
CACHE_STORE=file CACHE_STORE=file
QUEUE_CONNECTION=redis QUEUE_CONNECTION=sync
SESSION_DRIVER=file SESSION_DRIVER=file
HASHIDS_SALT= HASHIDS_SALT=
@ -36,7 +36,7 @@ MAIL_USERNAME=
MAIL_PASSWORD= MAIL_PASSWORD=
MAIL_ENCRYPTION=tls MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=no-reply@example.com MAIL_FROM_ADDRESS=no-reply@example.com
MAIL_FROM_NAME="Panel Administrator" MAIL_FROM_NAME="Pelican Admin"
# Set this to your domain to prevent it defaulting to 'localhost', causing mail servers such as Gmail to reject your mail # Set this to your domain to prevent it defaulting to 'localhost', causing mail servers such as Gmail to reject your mail
# MAIL_EHLO_DOMAIN=panel.example.com # MAIL_EHLO_DOMAIN=panel.example.com
SESSION_ENCRYPT=false SESSION_ENCRYPT=false

View File

@ -11,23 +11,23 @@ class AppSettingsCommand extends Command
use EnvironmentWriterTrait; use EnvironmentWriterTrait;
public const CACHE_DRIVERS = [ public const CACHE_DRIVERS = [
'redis' => 'Redis (recommended)', 'redis' => 'Redis',
'memcached' => 'Memcached', 'memcached' => 'Memcached',
'file' => 'Filesystem', 'file' => 'Filesystem (recommended)',
]; ];
public const SESSION_DRIVERS = [ public const SESSION_DRIVERS = [
'redis' => 'Redis (recommended)', 'redis' => 'Redis',
'memcached' => 'Memcached', 'memcached' => 'Memcached',
'database' => 'MySQL Database', 'database' => 'MySQL Database',
'file' => 'Filesystem', 'file' => 'Filesystem (recommended)',
'cookie' => 'Cookie', 'cookie' => 'Cookie',
]; ];
public const QUEUE_DRIVERS = [ public const QUEUE_DRIVERS = [
'redis' => 'Redis (recommended)', 'redis' => 'Redis',
'database' => 'MySQL Database', 'database' => 'MySQL Database',
'sync' => 'Sync', 'sync' => 'Sync (recommended)',
]; ];
protected $description = 'Configure basic environment settings for the Panel.'; protected $description = 'Configure basic environment settings for the Panel.';
@ -91,21 +91,21 @@ class AppSettingsCommand extends Command
config('app.timezone') config('app.timezone')
); );
$selected = config('cache.default', 'redis'); $selected = config('cache.default', 'file');
$this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice( $this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice(
'Cache Driver', 'Cache Driver',
self::CACHE_DRIVERS, self::CACHE_DRIVERS,
array_key_exists($selected, self::CACHE_DRIVERS) ? $selected : null array_key_exists($selected, self::CACHE_DRIVERS) ? $selected : null
); );
$selected = config('session.driver', 'redis'); $selected = config('session.driver', 'file');
$this->variables['SESSION_DRIVER'] = $this->option('session') ?? $this->choice( $this->variables['SESSION_DRIVER'] = $this->option('session') ?? $this->choice(
'Session Driver', 'Session Driver',
self::SESSION_DRIVERS, self::SESSION_DRIVERS,
array_key_exists($selected, self::SESSION_DRIVERS) ? $selected : null array_key_exists($selected, self::SESSION_DRIVERS) ? $selected : null
); );
$selected = config('queue.default', 'redis'); $selected = config('queue.default', 'sync');
$this->variables['QUEUE_CONNECTION'] = $this->option('queue') ?? $this->choice( $this->variables['QUEUE_CONNECTION'] = $this->option('queue') ?? $this->choice(
'Queue Driver', 'Queue Driver',
self::QUEUE_DRIVERS, self::QUEUE_DRIVERS,