env调整

This commit is contained in:
2025-03-20 10:34:21 +08:00
parent cd580fea23
commit 815ab00086
6 changed files with 47 additions and 15 deletions
+5 -5
View File
@@ -7,11 +7,11 @@ return [
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'database' => 'xyh_crm',
'username' => 'root',
'password' => 'root',
'host' => getenv('DB_HOST'),
'port' => getenv('DB_PORT'),
'database' => getenv('DB_NAME'),
'username' => getenv('DB_USER'),
'password' => getenv('DB_PASSWORD'),
'unix_socket' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
+3 -3
View File
@@ -1,6 +1,6 @@
<?php
return [
'secret' => 'Hj3$kLm8NpQrStUvXwZ1y2C4D6E8G', // 替换为高强度的密钥
'algorithm' => 'HS256', // 加密算法
'expire' => 3600 * 24 * 7, // 过期时间(7天)
'secret' => getenv('JWT_SECRET_KEY'), // 替换为高强度的密钥
'algorithm' => getenv('JWT_ALGORITHM'), // 加密算法
'expire' => getenv('JWT_EXPIRATION'), // 过期时间
];
+4 -4
View File
@@ -14,10 +14,10 @@
return [
'default' => [
'password' => '',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
'password' => getenv('REDIS_PASSWORD'),
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT'),
'database' => getenv('REDIS_DATABASE'),
// Connection pool, supports only Swoole or Swow drivers.
'pool' => [
'max_connections' => 5,