hoelee-check: v1 skeleton — net-guard, cache, ratelimit, router, pages, three checks

Zero-dependency Node service mounted at www.hoelee.com/check/.
net-guard pins the resolved IP, re-validates every redirect hop, and refuses
private ranges; the certificate is read off the same socket as the request.
Pages: hub, certificate, email auth, redirects/preview, about, report.
Argon review applied: optional-hardening wording, DKIM/SHA-1 root rules,
neutral not-evaluated, cache-before-scan, single-connection TLS.
This commit is contained in:
hoelee committed 2026-11-10 12:56:48 +08:00
commit b2707f49f7
19 files changed
+4722

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
FROM node:24-alpine
ENV NODE_ENV=production \
PORT=3000 \
HOST=0.0.0.0
WORKDIR /app
# No dependencies to install: zero npm packages is a design rule, not a temporary state.
COPY package.json ./
COPY src ./src
USER node
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:3000/check/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
CMD ["node", "src/server.mjs"]