|
|
|
@ -102,7 +102,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
|
|
|
|
throw new Error("No slug?");
|
|
|
|
|
}
|
|
|
|
|
const config = await statusPage.toJSON();
|
|
|
|
|
config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === '1';
|
|
|
|
|
config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1";
|
|
|
|
|
callback({
|
|
|
|
|
ok: true,
|
|
|
|
|
config,
|
|
|
|
@ -168,7 +168,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
|
|
|
|
statusPage.show_certificate_expiry = config.showCertificateExpiry;
|
|
|
|
|
statusPage.modified_date = R.isoDateTime();
|
|
|
|
|
statusPage.google_analytics_tag_id = config.googleAnalyticsId;
|
|
|
|
|
if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1"){
|
|
|
|
|
if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1") {
|
|
|
|
|
statusPage.custom_html = config.customHtml;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|