Skip to content

Commit

Permalink
Remove HEALTHCHECK_BYPASS
Browse files Browse the repository at this point in the history
This is a built-in Docker feature
  • Loading branch information
Al-Azif committed Nov 26, 2023
1 parent 1d67495 commit 3a0da59
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Start the compose file by calling `docker compose up -d` from the same location
| CF_STRICT | `false` | boolean | |
| OCSP_STAPLING | `false` | boolean | |
| SEVER_HASH_BUCKET_SIZE_OVERRIDE | `false` | boolean | Overrides the `server_names_hash_bucket_size` option in NGINX to be `64`. Some systems have `32` as the default and that is not enough for our usage |
| HEALTHCHECK_BYPASS | `false` | boolean | Skips the built in HEALTHCHECK directive. Will always appear healthy. |

## TODO

Expand Down
7 changes: 0 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ CF_IP_CORRECTION=${CF_IP_CORRECTION:-"false"} && CF_IP_CORRECTION=$(echo "$CF_IP
CF_STRICT=${CF_STRICT:-"false"} && CF_STRICT=$(echo "$CF_STRICT" | tr "[:upper:]" "[:lower:]")
OCSP_STAPLING=${OCSP_STAPLING:-"false"} && OCSP_STAPLING=$(echo "$OCSP_STAPLING" | tr "[:upper:]" "[:lower:]")
SEVER_HASH_BUCKET_SIZE_OVERRIDE=${SEVER_HASH_BUCKET_SIZE_OVERRIDE:-"false"} && SEVER_HASH_BUCKET_SIZE_OVERRIDE=$(echo "$SEVER_HASH_BUCKET_SIZE_OVERRIDE" | tr "[:upper:]" "[:lower:]")
HEALTHCHECK_BYPASS=${HEALTHCHECK_BYPASS:-"false"} && HEALTHCHECK_BYPASS=$(echo "$HEALTHCHECK_BYPASS" | tr "[:upper:]" "[:lower:]")

# Input validation
if [ "$DEBUG" != "true" ] && [ "$DEBUG" != "false" ]; then
Expand Down Expand Up @@ -83,11 +82,6 @@ if [ "$OCSP_STAPLING" != "true" ] && [ "$OCSP_STAPLING" != "false" ]; then
exit 1
fi

if [ "$HEALTHCHECK_BYPASS" != "true" ] && [ "$HEALTHCHECK_BYPASS" != "false" ]; then
echo "[!] Invalid option for HEALTHCHECK_BYPASS, expected \"true\" or \"false\""
exit 1
fi

if [ "$DEBUG" = "true" ]; then
echo "=== DEBUG ====================================================="
echo "REDIRECT_TYPE » $REDIRECT_TYPE"
Expand All @@ -104,7 +98,6 @@ if [ "$DEBUG" = "true" ]; then
echo "CF_IP_CORRECTION » $CF_IP_CORRECTION"
echo "CF_STRICT » $CF_STRICT"
echo "OCSP_STAPLING » $OCSP_STAPLING"
echo "HEALTHCHECK_BYPASS » $HEALTHCHECK_BYPASS"
echo "==============================================================="
fi

Expand Down
4 changes: 0 additions & 4 deletions healthcheck.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/ash
# shellcheck shell=dash

if [ "$HEALTHCHECK_BYPASS" = "true" ]; then
exit 0
fi

# Check Nintendo Landing Pages

# Check PlayStation Landing Pages
Expand Down

0 comments on commit 3a0da59

Please sign in to comment.