mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-24 01:52:30 +01:00
119 lines
3.5 KiB
PHP
119 lines
3.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Settings Driver
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Settings driver used to store persistent settings.
|
|
|
|
|
| Supported: "database"
|
|
|
|
|
*/
|
|
|
|
'default' => env('SETTINGS_DRIVER', 'database'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable / Disable caching
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If it is enabled all values gets cached after accessing it.
|
|
|
|
|
*/
|
|
'cache' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable / Disable value encryption
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If it is enabled all values gets encrypted and decrypted.
|
|
|
|
|
*/
|
|
'encryption' => env('SETTINGS_ENCRYPTION', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable / Disable events
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If it is enabled various settings related events will be fired.
|
|
|
|
|
*/
|
|
'events' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Repositories Configuration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may configure the driver information for each repository that
|
|
| is used by your application. A default configuration has been added
|
|
| for each back-end shipped with this package. You are free to add more.
|
|
|
|
|
*/
|
|
|
|
'repositories' => [
|
|
|
|
'database' => [
|
|
'driver' => 'database',
|
|
'connection' => env('DB_CONNECTION', 'mysql'),
|
|
'table' => 'settings',
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Key generator class
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Key generator is used to generate keys based on setting key and context.
|
|
|
|
|
*/
|
|
'key_generator' => \Krucas\Settings\KeyGenerators\KeyGenerator::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Context serializer class
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Context serializer serializes context.
|
|
| It is used with "Krucas\Settings\KeyGenerators\KeyGenerator" class.
|
|
|
|
|
*/
|
|
'context_serializer' => \Krucas\Settings\ContextSerializers\ContextSerializer::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Value serializer class
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Value serializer serializes / unserializes given value.
|
|
|
|
|
*/
|
|
'value_serializer' => \Krucas\Settings\ValueSerializers\ValueSerializer::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Override application config values
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If defined, settings package will override these config values from persistent
|
|
| settings repository.
|
|
|
|
|
| Sample:
|
|
| "app.fallback_locale",
|
|
| "app.locale" => "settings.locale",
|
|
|
|
|
*/
|
|
|
|
'override' => [
|
|
|
|
],
|
|
|
|
];
|