This repository has been archived on 2021-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
RealtimeDB-OLD/src/config.ts
2019-10-01 17:45:38 +02:00

20 lines
443 B
TypeScript

import Logging from "@hibas123/nodelogging";
import * as dotenv from "dotenv";
interface IConfig {
port: number;
admin: string;
access_log: boolean;
dev: boolean
}
const config: IConfig = {
port: Number(process.env.PORT),
access_log: (process.env.ACCESS_LOG || "").toLowerCase() === "true",
admin: process.env.ADMIN_KEY,
dev: (process.env.DEV || "").toLowerCase() === "true"
}
dotenv.config()
export default config;