Files
komodo/periphery/src/config.ts
T
2022-04-05 04:59:58 -07:00

12 lines
673 B
TypeScript

import { PeripherySecrets } from "@monitor/types";
import { getBooleanFromEnv, getNumberFromEnv, getStringFromEnv, readJSONFile } from "@monitor/util";
import { join } from "path";
export const SECRETS = readJSONFile("/secrets/secrets.json") as PeripherySecrets;
export const LOG = getBooleanFromEnv("LOG", true);
export const PORT = getNumberFromEnv("PORT", 8000);
// export const REGISTRY_URL = getStringFromEnv("REGISTRY_URL", "http://localhost:5000/");
export const SYSROOT = getStringFromEnv("SYSROOT", "/home/ubuntu/");
export const ROOT = "/monitor-root/";
export const CONTAINER_REPO_ROOT = join(ROOT, "repos");
export const SYS_REPO_ROOT = join(SYSROOT, "repos");