mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-28 16:00:38 +00:00
12 lines
673 B
TypeScript
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"); |