Delete rss3.io Statistics (#16387)
建议删除此统计功能,在此添加此功能降低了rsshub原有的鲁棒性,增加了风险点。 当前umami.rss3.io疑似处于宕机状态,在默认情况下安装的rsshub docker镜像会因此步无法执行而报错无法启动。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user