chore(ci): disable gitbook pages workflow for fork, add healthcheck + geo env docs

gitbook-pages.yml deployed to upstream org's 9router.github.io which a fork
cannot (no GH_PAGES_DEPLOY_KEY) — renamed to .yml.disabled. Dockerfile gains
a /api/health HEALTHCHECK. .env.example documents the new pool geostrobes
env knobs (POOL_GEO_PROBE_DISABLED, GEO_PROBE_URL).
This commit is contained in:
MUH. IQRAM BAHRING
2026-08-07 08:35:49 +08:00
parent 3844f04cb5
commit 56f46aa433
3 changed files with 10 additions and 0 deletions
+6
View File
@@ -39,3 +39,9 @@ NEXT_PUBLIC_CLOUD_URL=https://9router.com
# Currently unused by application runtime (kept as reference) # Currently unused by application runtime (kept as reference)
# INSTANCE_NAME=9router # INSTANCE_NAME=9router
# Proxy egress geo probe (Proxy Fitness "Geo probe" toggle makes this a runtime
# setting too). These env vars are the hard override / advanced knobs for the
# background scheduler that samples each pool's egress IP+country.
# POOL_GEO_PROBE_DISABLED=1 # 1 = never run the geo probe
# GEO_PROBE_URL= # optional single custom endpoint (replaces the built-in 4-endpoint chain)
+4
View File
@@ -49,5 +49,9 @@ RUN apk --no-cache upgrade && apk --no-cache add su-exec && \
EXPOSE 20128 EXPOSE 20128
# Health: Next serves /api/health (dashboardGuard public path).
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:20128/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["node", "custom-server.js"] CMD ["node", "custom-server.js"]