Automatic welcome email on signup and a single 48h-later nudge to import code if the account still has zero repos, via the shared OCI relay (team@go.rithub.dev, reply-to rithub@hi.ereboslab.com). Idempotent local state file, skips test/agent/mail.tm/qa accounts, one-line opt-out. systemd timer every 15 min on railyard-box (/opt/railyard/rithub-lifecycle), seeded so pre-existing accounts are never retroactively "welcomed". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
# /etc/products/rithub-lifecycle.env (root 640) — this job's own knobs.
|
|
# Sending credentials are NOT here: SMTP comes straight from
|
|
# /etc/products/rago.env (RAGO_SMTP_HOST/PORT/USERNAME/PASSWORD), the same
|
|
# shared OCI Email Delivery relay Rithub's own password-reset mail already
|
|
# sends through (see plans/railyard.md RIT-ACT 2026-11-30). RITHUB_ADMIN_TOKEN
|
|
# also defaults to reading the token already minted for rithub-mcp
|
|
# (/etc/products/rithub-mcp.env) rather than minting a new one.
|
|
|
|
# Must be an OCI-approved sender for go.rithub.dev (today: team@, hello@ —
|
|
# NOT noreply@, confirmed 535 on that one). Matches the password-reset
|
|
# mail's own From.
|
|
MAIL_FROM=Rithub <team@go.rithub.dev>
|
|
# Real inbox a person reads (routes via Cloudflare Email Routing to the
|
|
# scribase-inbox Worker, same pattern as arhan@scribase.com /
|
|
# caldesk@hi.ereboslab.com — see plans/outbound.md).
|
|
MAIL_REPLY_TO=rithub@hi.ereboslab.com
|
|
|
|
# Where this job's own "already sent / opted out" record lives.
|
|
STATE_DIR=/var/lib/rithub-lifecycle
|
|
|
|
# Rithub's own admin REST API, read-only. Loopback avoids Cloudflare's edge
|
|
# (same reasoning as rithub-mcp/bulk-migrate.sh).
|
|
RITHUB_API_BASE=http://127.0.0.1:3350
|
|
RITHUB_PUBLIC_BASE_URL=https://rithub.dev
|
|
OWNER_LOGIN=caelum0x
|
|
|
|
# Optional override — only needed if rithub-mcp's own token file ever moves
|
|
# or this job should use a different token.
|
|
# RITHUB_ADMIN_TOKEN=
|
|
# MCP_ENV_FILE=/etc/products/rithub-mcp.env
|
|
# RAGO_ENV_FILE=/etc/products/rago.env
|
|
|
|
# How long after signup, with 0 repos, the nudge fires.
|
|
NUDGE_MIN_HOURS=48
|
|
|
|
# Test/agent/QA login prefixes and disposable email domains to never mail.
|
|
EXCLUDE_LOGIN_REGEX=^(agent-|rithub-lev-|rit-[a-z]+-qa-|qa-|test-|demo-)
|
|
EXCLUDE_EMAIL_DOMAIN_REGEX=@(euploading\.com|mail\.tm|.*\.mail\.tm|guerrillamail\.[a-z]+|10minutemail\.[a-z]+|example\.(com|org|net)|agents\.rithub\.dev)$
|