daton/app/configs/db.config.ts

17 lines
412 B
TypeScript
Raw Normal View History

import {env} from "../../lib/src/unit/Scaffolding.ts";
export default {
connections: {
default: {
type: env('DB_TYPE', 'postgres'),
user: env('DB_USERNAME', 'daton'),
password: env('DB_PASSWORD'),
database: env('DB_DATABASE', 'daton'),
hostname: env('DB_HOSTNAME', 'localhost'),
port: env('DB_PORT', 5432),
}
}
}