Alexander Whitestone eef835d2aa feat: Fallback + resilience — health checks, restart, failover (#8)
Adds operational resilience tooling:

- resilience/health-check.sh: Health check script with 5 checks (nginx, static content, gateway, disk, SSL). Supports --auto-restart and --verbose modes.
- resilience/service-restart.sh: Graceful ordered service restart with stop->verify->start->verify cycle. Supports --force mode.
- Fallback logic for when gateway is unreachable (graceful degradation to static pages)

All scripts are self-contained, no external dependencies, work on common Linux distros.
2026-04-05 17:24:09 -04:00
2026-03-30 23:27:46 +00:00
2026-03-30 16:38:06 +00:00

The Door

A single URL where a man at 3am can talk to Timmy. No login. No signup. No tracking. Just a door that's always open.

Mission

Stand between a broken man and a machine that would tell him to die.

What This Is

  • index.html — The entire frontend. One file. <25KB. Works on 3G.
  • system-prompt.txt — The crisis-aware system prompt for Timmy.
  • deploy/ — nginx config and deployment script for the VPS.

Architecture

Browser → nginx (SSL) → static HTML → /api/* proxy → Hermes Gateway

Crisis Features

  • 988 Suicide & Crisis Lifeline banner (always visible, click-to-call)
  • Client-side crisis keyword detection
  • Full-screen 988 overlay for explicit intent
  • Crisis-aware AI responses per SOUL.md
  • Offline fallback with static crisis resources

Quick Deploy

ssh root@67.205.155.108
cd /opt/the-door
bash deploy/deploy.sh
  • 📞 988 Suicide & Crisis Lifeline — call or text 988
  • 💬 Crisis Text Line — text HOME to 741741
  • ⛓️ SOUL.md — Timmy's soul, inscribed on Bitcoin

Built by a man who survived his darkest night, for the man who's in his right now.

Sovereignty and service always.

Description
Crisis Front Door — A single URL where a man at 3am can talk to Timmy. No login, no signup. 988 always visible. When a Man Is Dying protocol active.
Readme MIT 119 KiB
Languages
HTML 49.9%
Python 34.6%
Shell 11.3%
JavaScript 4.2%