Fix security issue - remove actual database credentials from config, use placeholders
This commit is contained in:
parent
b2ade0cfcb
commit
ccecd2b5bb
|
|
@ -18,9 +18,9 @@ if (file_exists(__DIR__ . '/../.env')) {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'host' => $_ENV['DB_HOST'] ?? 'localhost',
|
'host' => $_ENV['DB_HOST'] ?? 'localhost',
|
||||||
'database' => $_ENV['DB_NAME'] ?? 'rsshub',
|
'database' => $_ENV['DB_NAME'] ?? 'your_database_name',
|
||||||
'username' => $_ENV['DB_USER'] ?? 'rsshub',
|
'username' => $_ENV['DB_USER'] ?? 'your_database_user',
|
||||||
'password' => $_ENV['DB_PASS'] ?? 'rsshub_moloko22',
|
'password' => $_ENV['DB_PASS'] ?? 'your_secure_password',
|
||||||
'charset' => 'utf8mb4',
|
'charset' => 'utf8mb4',
|
||||||
'collation' => 'utf8mb4_unicode_ci',
|
'collation' => 'utf8mb4_unicode_ci',
|
||||||
'options' => [
|
'options' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue