uptime-kuma/server/config.js

30 lines
880 B
JavaScript
Raw Normal View History

// Interop with browser
const args = (typeof process !== "undefined") ? require("args-parser")(process.argv) : {};
2021-10-15 12:57:26 -04:00
const demoMode = args["demo"] || false;
2022-01-04 06:21:53 -05:00
const badgeConstants = {
naColor: "#999",
defaultUpColor: "#66c20a",
defaultWarnColor: "#eed202",
2022-01-04 06:21:53 -05:00
defaultDownColor: "#c2290a",
2023-01-11 15:14:46 -05:00
defaultPendingColor: "#f8a306",
defaultMaintenanceColor: "#1747f5",
2022-01-04 06:21:53 -05:00
defaultPingColor: "blue", // as defined by badge-maker / shields.io
defaultStyle: "flat",
defaultPingValueSuffix: "ms",
defaultPingLabelSuffix: "h",
defaultUptimeValueSuffix: "%",
defaultUptimeLabelSuffix: "h",
defaultCertExpValueSuffix: " days",
defaultCertExpLabelSuffix: "h",
// Values Come From Default Notification Times
defaultCertExpireWarnDays: "14",
defaultCertExpireDownDays: "7"
2022-01-04 06:21:53 -05:00
};
2021-10-15 12:57:26 -04:00
module.exports = {
args,
2022-01-04 06:21:53 -05:00
demoMode,
2022-01-04 10:01:40 -05:00
badgeConstants,
2021-10-15 12:57:26 -04:00
};