20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
const config = {
|
|
dbUsername: Deno.env.get("DB_USER") ?? "postgres",
|
|
dbHostname: Deno.env.get("DB_HOST") ?? "localhost",
|
|
dbPassword: Deno.env.get("DB_PASS") ?? "",
|
|
dbPort: Number(Deno.env.get("DB_PORT") ?? 5432),
|
|
hostname: Deno.env.get("HOST") ?? "localhost",
|
|
port: Number(Deno.env.get("PORT") ?? 8080),
|
|
};
|
|
|
|
console.log(`ENV:
|
|
db username: ${config.dbUsername}
|
|
db hostname: ${config.dbHostname}
|
|
db pass: ******
|
|
db port: ${config.dbPort}
|
|
server port: ${config.port}
|
|
server hostname: ${config.hostname}
|
|
`);
|
|
|
|
export default config;
|