From 25ba52871381cfc33ff95a6d470b863a888e5e0e Mon Sep 17 00:00:00 2001 From: adamXbot <111877622+adamXbot@users.noreply.github.com> Date: Fri, 6 Nov 2026 21:59:10 +1100 Subject: [PATCH] Static uptime probe at /offgrid offgrid answers "runner", typed text/plain, uncached and noindex by _headers, so Blackbox can match a fixed body instead of the homepage. Co-Authored-By: Claude Opus 5.5 --- _headers | 9 +++++++++ offgrid | 1 + package.json | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 offgrid diff --git a/_headers b/_headers index daca6ea..49f0a03 100644 --- a/_headers +++ b/_headers @@ -2,3 +2,12 @@ # RFC 9116 ยง3 requires security.txt to be served as text/plain with charset utf-8. /.well-known/security.txt Content-Type: text/plain; charset=utf-8 + +# Uptime probe: Blackbox fetches /offgrid every minute and expects "runner". +# A small fixed file, so the check does not change when pages are edited, and +# an exact body match proves this site answered rather than a parked page or +# an error page. Typed and uncached so every probe reaches the asset store. +/offgrid + Content-Type: text/plain; charset=utf-8 + Cache-Control: no-cache, max-age=0, must-revalidate + X-Robots-Tag: noindex diff --git a/offgrid b/offgrid new file mode 100644 index 0000000..c33ca06 --- /dev/null +++ b/offgrid @@ -0,0 +1 @@ +runner diff --git a/package.json b/package.json index 5f34ce3..76bf7f5 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "repository": "https://github.com/privacykey/docs-privacycommand", "scripts": { "dev": "npx --yes mint dev", - "build": "rm -rf dist export.zip && npx --yes mint@latest export && mkdir -p dist && (unzip -q -o export.zip -d dist || python3 -m zipfile -e export.zip dist) && cp .assetsignore dist/.assetsignore && cp _headers dist/_headers && mkdir -p dist/.well-known && cp -R .well-known/. dist/.well-known/ && node scripts/build-llms.mjs --dist dist", + "build": "rm -rf dist export.zip && npx --yes mint@latest export && mkdir -p dist && (unzip -q -o export.zip -d dist || python3 -m zipfile -e export.zip dist) && cp .assetsignore dist/.assetsignore && cp _headers dist/_headers && cp offgrid dist/offgrid && mkdir -p dist/.well-known && cp -R .well-known/. dist/.well-known/ && node scripts/build-llms.mjs --dist dist", "check": "node scripts/check-docs.mjs && node scripts/build-llms.mjs --check", "llms": "node scripts/build-llms.mjs", "linkcheck": "lychee --no-progress --accept-timeouts --accept '100..=103,200..=299,429' --root-dir \"$PWD\" --scheme https --scheme http --exclude-loopback --exclude 'localhost' --exclude 'dash\\.cloudflare\\.com' --exclude 'docs\\.([a-z0-9-]+\\.)?privacykey\\.org' --exclude-path images --exclude-path .github './**/*.mdx' './**/*.md'"