Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Added title in < ConfigMap >
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Jul 26, 2021
1 parent 3732ba7 commit c33efd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { config } from "docker-compose";
import { IConfig, ISMTP } from "./Interfaces/Config";
import { IConfigMapIndex } from "./Interfaces/ConfigMap";
import AW from "./Lib/Async";
import ConfigModel from "./Models/Config";

export const DebugMode = process.env.DEBUG === "true" ? true : false;
export const MongoDB_URI = process.env.MONGODB_URI ?? "mongodb://localhost/dmcd";
export const Web_Title = process.env.TITLE ?? "DMCD";
export const PORT = 56251;
export const Session_Secret = process.env.SESSION_SECRET ?? undefined;
export const GetSMTPConfig = () => {
Expand All @@ -29,5 +29,6 @@ export const ConfigMap = new Map<keyof IConfigMapIndex, IConfigMapIndex[keyof I
export const Dir = ((__dirname.replace("\\build", "")).replace("/build", ""));
export const DockerDir = Dir+"/Docker";

ConfigMap.set("domain", process.env.DOMAIN ?? "localhost")
ConfigMap.set("http", process.env.HTTP as "https" ?? "http")
ConfigMap.set("title", process.env.TITLE ?? "DMCD");
ConfigMap.set("domain", process.env.DOMAIN ?? "localhost");
ConfigMap.set("http", process.env.HTTP as "https" ?? "http");
1 change: 1 addition & 0 deletions src/Interfaces/ConfigMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export interface IConfigMapIndex
{
domain: string;
http: "http" | "https";
title: string;
}

0 comments on commit c33efd8

Please sign in to comment.