Skip to content

Commit

Permalink
Delete rss3.io Statistics (#16387)
Browse files Browse the repository at this point in the history
建议删除此统计功能,在此添加此功能降低了rsshub原有的鲁棒性,增加了风险点。
当前umami.rss3.io疑似处于宕机状态,在默认情况下安装的rsshub docker镜像会因此步无法执行而报错无法启动。
  • Loading branch information
voidtao authored Aug 6, 2024
1 parent 3c77a00 commit 9407e44
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9407e44

Please sign in to comment.