From 8b7e406cd6499c3114e685f3962d9c75d0e28acd Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 3 Jan 2023 08:25:47 +0000 Subject: [PATCH] Shift config files --- app/Api/v1/InstallerApiController.php | 2 +- .../Installer/helpdesk/InstallController.php | 2 +- config/hashing.php | 52 +++++++++++++++++++ example.env | 2 +- phpunit.xml | 2 +- 5 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 config/hashing.php diff --git a/app/Api/v1/InstallerApiController.php b/app/Api/v1/InstallerApiController.php index 90663afc1..e649dd730 100644 --- a/app/Api/v1/InstallerApiController.php +++ b/app/Api/v1/InstallerApiController.php @@ -99,7 +99,7 @@ class InstallerApiController extends Controller $ENV['MAIL_PASSWORD'] = 'null'; $ENV['CACHE_DRIVER'] = 'file'; $ENV['SESSION_DRIVER'] = 'file'; - $ENV['QUEUE_DRIVER'] = 'sync'; + $ENV['QUEUE_CONNECTION'] = 'sync'; $ENV['JWT_TTL'] = 4; $ENV['FCM_SERVER_KEY'] = 'AIzaSyCyx5OFnsRFUmDLTMbPV50ZMDUGSG-bLw4'; $ENV['FCM_SENDER_ID'] = '661051343223'; diff --git a/app/Http/Controllers/Installer/helpdesk/InstallController.php b/app/Http/Controllers/Installer/helpdesk/InstallController.php index 7abfd349b..033c20f58 100644 --- a/app/Http/Controllers/Installer/helpdesk/InstallController.php +++ b/app/Http/Controllers/Installer/helpdesk/InstallController.php @@ -441,7 +441,7 @@ class InstallController extends Controller $ENV['CACHE_DRIVER'] = 'file'; $ENV['SESSION_DRIVER'] = 'file'; $ENV['SESSION_COOKIE_NAME'] = 'faveo_'.rand(0, 10000); - $ENV['QUEUE_DRIVER'] = 'sync'; + $ENV['QUEUE_CONNECTION'] = 'sync'; $ENV['JWT_TTL'] = 4; $ENV['FCM_SERVER_KEY'] = 'AIzaSyCyx5OFnsRFUmDLTMbPV50ZMDUGSG-bLw4'; $ENV['FCM_SENDER_ID'] = '661051343223'; diff --git a/config/hashing.php b/config/hashing.php new file mode 100644 index 000000000..842577087 --- /dev/null +++ b/config/hashing.php @@ -0,0 +1,52 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 1024, + 'threads' => 2, + 'time' => 2, + ], + +]; diff --git a/example.env b/example.env index d6b88a59d..e4230e9df 100644 --- a/example.env +++ b/example.env @@ -15,4 +15,4 @@ MAIL_USERNAME=null MAIL_PASSWORD=null CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync \ No newline at end of file +QUEUE_CONNECTION=sync \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml index 659b77454..b8a33e389 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -27,7 +27,7 @@ - +