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, },