From 70523e77b9ef60e081276b9d2f9d88305b0e5d5c Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Wed, 10 Apr 2024 09:20:42 -0400 Subject: [PATCH] Use trending api for health checks instead of comments (#530) --- docs/community-installation-guide.md | 2 +- docs/improve-public-instance.md | 8 ++++---- docs/installation.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/community-installation-guide.md b/docs/community-installation-guide.md index 62d941e..811fc3a 100644 --- a/docs/community-installation-guide.md +++ b/docs/community-installation-guide.md @@ -53,7 +53,7 @@ podman create --rm \ --pod videos \ --name invidious \ --label "io.containers.autoupdate=registry" \ ---health-cmd="wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1" \ +--health-cmd="wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1" \ --health-interval=30s \ --health-timeout=5s \ --health-retries=2 \ diff --git a/docs/improve-public-instance.md b/docs/improve-public-instance.md index 963138d..fba91dd 100644 --- a/docs/improve-public-instance.md +++ b/docs/improve-public-instance.md @@ -134,7 +134,7 @@ We assume that you have not changed the port `3000` from the default installatio statistics_enabled: true hmac_key: "CHANGE_ME!!" healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s timeout: 5s retries: 2 @@ -166,7 +166,7 @@ We assume that you have not changed the port `3000` from the default installatio statistics_enabled: true hmac_key: "CHANGE_ME!!" healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s timeout: 5s retries: 2 @@ -295,7 +295,7 @@ But if you do not have NGINX as **your main reverse proxy** you can either try t # statistics_enabled: false hmac_key: "CHANGE_ME!!" healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s timeout: 5s retries: 2 @@ -324,7 +324,7 @@ But if you do not have NGINX as **your main reverse proxy** you can either try t # statistics_enabled: false hmac_key: "CHANGE_ME!!" healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s timeout: 5s retries: 2 diff --git a/docs/installation.md b/docs/installation.md index 8a4983c..8f86b78 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -59,7 +59,7 @@ services: # statistics_enabled: false hmac_key: "CHANGE_ME!!" healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s timeout: 5s retries: 2