uptime-kuma/server/config.js

22 lines
548 B
JavaScript
Raw Normal View History

2021-10-15 09:57:26 -07:00
const args = require("args-parser")(process.argv);
const demoMode = args["demo"] || false;
2022-01-04 03:21:53 -08:00
const badgeConstants = {
naColor: "#999",
defaultUpColor: "#66c20a",
defaultDownColor: "#c2290a",
defaultMaintenanceColor: "#1747f5",
2022-01-04 03:21:53 -08:00
defaultPingColor: "blue", // as defined by badge-maker / shields.io
defaultStyle: "flat",
defaultPingValueSuffix: "ms",
defaultPingLabelSuffix: "h",
defaultUptimeValueSuffix: "%",
defaultUptimeLabelSuffix: "h",
2022-01-04 03:21:53 -08:00
};
2021-10-15 09:57:26 -07:00
module.exports = {
args,
2022-01-04 03:21:53 -08:00
demoMode,
2022-01-04 07:01:40 -08:00
badgeConstants,
2021-10-15 09:57:26 -07:00
};