config/mysql: create database by default, use swaf user with password swaf by default, don't create database in production

This commit is contained in:
Alice Gaudon 2024-09-21 18:39:02 +02:00
parent 8ae520aa07
commit b59e053cad
3 changed files with 6 additions and 6 deletions

View File

@ -37,10 +37,10 @@
mysql: { mysql: {
connectionLimit: 10, connectionLimit: 10,
host: "127.0.0.1", host: "127.0.0.1",
user: "root", user: "swaf",
password: "", password: "swaf",
database: "swaf", database: "swaf",
create_database_automatically: false, create_database_automatically: true,
}, },
redis: { redis: {
host: "127.0.0.1", host: "127.0.0.1",

View File

@ -16,6 +16,9 @@
secure: true, secure: true,
allow_invalid_tls: false, allow_invalid_tls: false,
}, },
mysql: {
create_database_automatically: false,
},
session: { session: {
cookie: { cookie: {
secure: true, secure: true,

View File

@ -3,9 +3,6 @@
approval_mode: true, approval_mode: true,
}, },
mysql: { mysql: {
host: "127.0.0.1",
user: "root",
password: "",
database: "swaf_test", database: "swaf_test",
create_database_automatically: true, create_database_automatically: true,
}, },