From 40284c545d71deaeb7b06bbc992992a4944bf7af Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 27 Apr 2024 08:20:23 +0000 Subject: [PATCH] Set new `ENV` variables --- .env.example | 19 +++++++++++++++++-- config/database.php | 4 ++-- phpunit.xml | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 9932324f3..1b579eceb 100644 --- a/.env.example +++ b/.env.example @@ -45,14 +45,25 @@ ADMIN_EMAIL= APP_NAME=NNTmux APP_ENV=production APP_DEBUG=false +APP_TIMEZONE=UTC APP_URL= + +APP_LOCALE=en +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + +APP_MAINTENANCE_DRIVER=file +APP_MAINTENANCE_STORE=database + +BCRYPT_ROUNDS=12 APP_TZ=Europe/Paris APP_KEY= LOG_CHANNEL=stack +LOG_STACK=single PASSWORD_HASH=argon2id -BROADCAST_DRIVER=log -CACHE_DRIVER=redis +BROADCAST_CONNECTION=log +CACHE_STORE=redis QUEUE_CONNECTION=sync REDIS_HOST=127.0.0.1 @@ -173,3 +184,7 @@ PURGE_INACTIVE_USERS=false OTP_ENABLED=false FLARE_KEY= + +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null diff --git a/config/database.php b/config/database.php index 91cb847de..bc7be74fa 100644 --- a/config/database.php +++ b/config/database.php @@ -7,7 +7,7 @@ return [ 'connections' => [ 'mysql' => [ 'driver' => 'mysql', - 'url' => env('DATABASE_URL'), + 'url' => env('DB_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'nntmux'), @@ -26,7 +26,7 @@ return [ 'pgsql' => [ 'driver' => 'pgsql', - 'url' => env('DATABASE_URL'), + 'url' => env('DB_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'nntmux'), diff --git a/phpunit.xml b/phpunit.xml index 1e2c9a449..888fcef4b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -14,7 +14,7 @@ - +