add config module
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user