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.
18 lines
469 B
Docker
18 lines
469 B
Docker
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"]
|