From 9407e44fba1bd47f7e0cfcd0ba713a9c7cf60994 Mon Sep 17 00:00:00 2001 From: tong <62124813+voidtao@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:48:06 +0800 Subject: [PATCH] Delete rss3.io Statistics (#16387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 建议删除此统计功能,在此添加此功能降低了rsshub原有的鲁棒性,增加了风险点。 当前umami.rss3.io疑似处于宕机状态,在默认情况下安装的rsshub docker镜像会因此步无法执行而报错无法启动。 --- lib/config.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index 11bd26c9e..851028b63 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -719,26 +719,6 @@ calculateValue(); logger.error('Remote config load failed.', error); } } - - if (!envs.DISABLE_UMAMI && envs.NODE_ENV === 'production') { - ofetch('https://umami.rss3.io/api/send', { - method: 'POST', - headers: { - 'content-type': 'application/json', - 'user-agent': TRUE_UA, - }, - body: JSON.stringify({ - payload: { - hostname: 'rsshub.app', - language: 'en-US', - referrer: 'rsshub.app', - url: 'rsshub.app', - website: '239067cd-231f-4a3f-a478-cced11a84876', - }, - type: 'event', - }), - }); - } })(); // @ts-expect-error value is set