Update engine config

This commit is contained in:
Visman 2022-02-09 22:01:49 +07:00
parent bc23b17e06
commit ca22771c68
2 changed files with 24 additions and 3 deletions

View file

@ -34,11 +34,12 @@ return [
'common' => [],
'secure' => [],
],
'HMAC' => [
'algo' => 'sha1',
'salt' => '_SALT_FOR_HMAC_',
],
'DATE_FORMATS' => ['Y-m-d', 'd M Y', 'Y-m-d', 'Y-d-m', 'd-m-Y', 'm-d-Y', 'M j Y', 'jS M Y'],
'TIME_FORMATS' => ['H:i:s', 'H:i', 'H:i:s', 'H:i', 'g:i:s a', 'g:i a'],
'forConfig' => [
'o_default_lang' => 'en',
@ -52,6 +53,15 @@ return [
],
'shared' => [
'%DIR_ROOT%' => \realpath(__DIR__ . '/../..'),
'%DIR_PUBLIC%' => '%DIR_ROOT%/public',
'%DIR_APP%' => '%DIR_ROOT%/app',
'%DIR_CACHE%' => '%DIR_APP%/cache',
'%DIR_CONFIG%' => '%DIR_APP%/config',
'%DIR_LANG%' => '%DIR_APP%/lang',
'%DIR_LOG%' => '%DIR_APP%/log',
'%DIR_VIEWS%' => '%DIR_APP%/templates',
'DB' => [
'class' => \ForkBB\Core\DB::class,
'dsn' => '%DB_DSN%',
@ -98,7 +108,7 @@ return [
],
'HTMLCleaner' => [
'calss' => \ForkBB\Core\HTMLCleaner::class,
'config' => '%DIR_APP%/config/jevix.default.php',
'config' => '%DIR_CONFIG%/jevix.default.php',
],
'Log' => [
'class' => \ForkBB\Core\Log::class,

View file

@ -66,8 +66,19 @@ return [
'Feature-Policy' => 'accelerometer \'none\';ambient-light-sensor \'none\';autoplay \'none\';battery \'none\';camera \'none\';document-domain \'self\';fullscreen \'self\';geolocation \'none\';gyroscope \'none\';magnetometer \'none\';microphone \'none\';midi \'none\';payment \'none\';picture-in-picture \'none\';sync-xhr \'self\';usb \'none\'',
],
],
'DATE_FORMATS' => ['Y-m-d', 'd M Y', 'Y-m-d', 'Y-d-m', 'd-m-Y', 'm-d-Y', 'M j Y', 'jS M Y'],
'TIME_FORMATS' => ['H:i:s', 'H:i', 'H:i:s', 'H:i', 'g:i:s a', 'g:i a'],
'shared' => [
'%DIR_ROOT%' => \realpath(__DIR__ . '/../..'),
'%DIR_PUBLIC%' => '%DIR_ROOT%/public',
'%DIR_APP%' => '%DIR_ROOT%/app',
'%DIR_CACHE%' => '%DIR_APP%/cache',
'%DIR_CONFIG%' => '%DIR_APP%/config',
'%DIR_LANG%' => '%DIR_APP%/lang',
'%DIR_LOG%' => '%DIR_APP%/log',
'%DIR_VIEWS%' => '%DIR_APP%/templates',
'DB' => [
'class' => \ForkBB\Core\DB::class,
'dsn' => '%DB_DSN%',
@ -127,7 +138,7 @@ return [
],
'HTMLCleaner' => [
'class' => \ForkBB\Core\HTMLCleaner::class,
'config' => '%DIR_APP%/config/jevix.default.php',
'config' => '%DIR_CONFIG%/jevix.default.php',
],
'config' => '@ConfigModel:init',