From a25ae48d06039d81bebf60bc7b8e1c650a1d0ddc Mon Sep 17 00:00:00 2001 From: 4cuck <40539855+4cuck@users.noreply.github.com> Date: Fri, 23 Feb 2024 02:56:55 +0100 Subject: [PATCH] warn about caching hosts --- scanner/src/cache_update.rs | 3 +- server/templates/about.html.j2 | 57 +++++++++++++++++++++------------- server/templates/rip.html.j2 | 1 + 3 files changed, 37 insertions(+), 24 deletions(-) diff --git a/scanner/src/cache_update.rs b/scanner/src/cache_update.rs index 3bbbc7e..0af1620 100644 --- a/scanner/src/cache_update.rs +++ b/scanner/src/cache_update.rs @@ -134,8 +134,7 @@ impl Scanner { .as_ref() .map_or(false, |url| current_version.is_same_repo(&url)); - let is_bad_host = - (!last_check.healthy) && self.inner.config.bad_hosts.contains(&host.domain); + let is_bad_host = self.inner.config.bad_hosts.contains(&host.domain); let host_ping_data = ping_data.remove(&host.id); let last_healthy = last_healthy_check.remove(&host.id); diff --git a/server/templates/about.html.j2 b/server/templates/about.html.j2 index b6ce145..d58af21 100644 --- a/server/templates/about.html.j2 +++ b/server/templates/about.html.j2 @@ -1,16 +1,18 @@ {# SPDX-License-Identifier: AGPL-3.0-only #} - - - - - - - About Nitter Instance Health - - -
+ + + + + + + + About Nitter Instance Health + + + +

Nitter instance uptime & health tracker

Home

Uptime check interval: {{uptime_interval_s}}s.

@@ -20,38 +22,49 @@

The following paths are checked per instance:

Table Explanations

Settings for visible columns are stored locally per client.

API

- The same data as visible in the website/table can also be fetched as JSON from /api/v1/instances (link). - Note that the data only changes in the intervals stated above. Thus requesting it very often will get you rate limited. + The same data as visible in the website/table can also be fetched as JSON from /api/v1/instances (link). + Note that the data only changes in the intervals stated above. Thus requesting it + very often will get you rate limited.

- Please do not use instances listed here for scraping(?) ! - Instead host your own nitter instance, so public instances can be used by less tech savy people and not get overrun by you. You can get help with that at the listed matrix channel. + Please do not use instances listed here for scraping(?) ! + Instead host your own nitter instance, so public instances + can be used by less tech savy people and not get overrun by you. You can get help with that at the listed matrix + channel.

-

The purpose of this API is to serve services like Twiiit, Farside or people looking for indication that their RSS feed is down - but not scrapers. Scraping will bring the downfall of public instances.

+

The purpose of this API is to serve services like Twiiit, Farside or people looking for indication that their RSS + feed is down - but not scrapers. Scraping will bring the downfall of public instances.

Sourcecode

License: AGPL3

-
- - +
+ + + \ No newline at end of file diff --git a/server/templates/rip.html.j2 b/server/templates/rip.html.j2 index fa4cecd..7058161 100644 --- a/server/templates/rip.html.j2 +++ b/server/templates/rip.html.j2 @@ -58,6 +58,7 @@ + \ No newline at end of file