add config module

This commit is contained in:
2025-06-09 14:59:22 +08:00
parent 2afa6bcb4c
commit 2e4997da9c
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ export const database = createDBConfig((configure) => ({
connections: [
{
type: 'mysql',
host: configure.env.get('DB_HOST', '127.0.0.1'),
host: configure.env.get('DB_HOST', '192.168.50.26'),
port: configure.env.get<number>('DB_PORT', (v) => toNumber(v), 3306),
username: configure.env.get('DB_USERNAME', 'root'),
username: configure.env.get('DB_USERNAME', '3r'),
password: configure.env.get('DB_PASSWORD', '12345678'),
database: configure.env.get('DB_NAME', '3r'),
},