From b59e053cad59d24f78dd308e3b3f07b5dd14fd63 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 21 Sep 2024 18:39:02 +0200 Subject: [PATCH] config/mysql: create database by default, use swaf user with password swaf by default, don't create database in production --- config/default.json5 | 6 +++--- config/production.json5 | 3 +++ config/test.json5 | 3 --- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/default.json5 b/config/default.json5 index b853789..6382d12 100644 --- a/config/default.json5 +++ b/config/default.json5 @@ -37,10 +37,10 @@ mysql: { connectionLimit: 10, host: "127.0.0.1", - user: "root", - password: "", + user: "swaf", + password: "swaf", database: "swaf", - create_database_automatically: false, + create_database_automatically: true, }, redis: { host: "127.0.0.1", diff --git a/config/production.json5 b/config/production.json5 index 6b74f3c..25a9e1c 100644 --- a/config/production.json5 +++ b/config/production.json5 @@ -16,6 +16,9 @@ secure: true, allow_invalid_tls: false, }, + mysql: { + create_database_automatically: false, + }, session: { cookie: { secure: true, diff --git a/config/test.json5 b/config/test.json5 index 351913e..c554a5c 100644 --- a/config/test.json5 +++ b/config/test.json5 @@ -3,9 +3,6 @@ approval_mode: true, }, mysql: { - host: "127.0.0.1", - user: "root", - password: "", database: "swaf_test", create_database_automatically: true, },