From 456e41768a3d11b998412af5b3bb326dd29319c3 Mon Sep 17 00:00:00 2001 From: Jesse Schoepfer Date: Tue, 31 Oct 2023 01:33:18 -0400 Subject: [PATCH] Added timeout to GET --- README.md | 12 ++++++------ fedi_gatus/config_gen/gen.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4527c2c..7c12caa 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,16 @@ - If you have questions or problems deploying feel free to contact me via links in my GH Profile > ==FIXME== -> +> > **Well the orig API backend is only returning like 4 results... so Imma just gonna hit up db0, cause he's a cool dude ;-)** ```mermaid flowchart -docker_compose +docker_compose --creates--> api_server & caddy & config_gen & data_updater -caddy ---serves--> gatus & api_server +caddy +--serves--> gatus & api_server data_updater --updated records in --> db @@ -28,9 +28,9 @@ api_server config_gen ---pulls data from --> db +--pulls data from --> db0 -config_gen +config_gen --creates config for--> gatus gatus --store data in--> gatus_postgres diff --git a/fedi_gatus/config_gen/gen.py b/fedi_gatus/config_gen/gen.py index cfea6d1..de65d53 100644 --- a/fedi_gatus/config_gen/gen.py +++ b/fedi_gatus/config_gen/gen.py @@ -68,7 +68,7 @@ def generate_top_instances(): # TODO Ask dbo about adding params to library # https://github.com/Fediseer/pythonseer/issues/7 - d = requests.get(url='https://fediseer.com/api/v1/whitelist', + d = requests.get(url='https://fediseer.com/api/v1/whitelist', timeout=60, params={'endorsements': 3, 'guarantors': 4, 'software_csv': 'lemmy', 'limit': 100, 'domains': True}).json()['domains'] # d = db.DbAccess().get_top_instances() # FIXME Backend is only returning a very small set of data... funnnnnn