More preparations for 2 factor authentication
This commit is contained in:
@ -1,11 +1,6 @@
|
||||
export interface DatabaseConfig {
|
||||
host: string
|
||||
database: string
|
||||
dialect: "sqlite" | "mysql" | "postgres" | "mssql"
|
||||
username: string
|
||||
password: string
|
||||
storage: string
|
||||
benchmark: "true" | "false" | undefined
|
||||
}
|
||||
|
||||
export interface WebConfig {
|
||||
@ -37,7 +32,7 @@ import { Logging } from "@hibas123/nodelogging";
|
||||
dotenv.config();
|
||||
|
||||
const config: Config = ini.parse(readFileSync("./config.ini").toString())
|
||||
|
||||
if (config.dev) config.dev = Boolean(config.dev);
|
||||
if (process.env.DEV === "true") {
|
||||
config.dev = true;
|
||||
Logging.warning("DEV mode active. This can cause major performance issues, data loss and vulnerabilities! ")
|
||||
|
Reference in New Issue
Block a user