45 lines
2.1 KiB
Bash
45 lines
2.1 KiB
Bash
# Copy to dormant-sweep.env on mammut and tune. No secrets live here — the sweep
|
|
# runs inside Rails as the bot account, so there is no token to store.
|
|
|
|
# Inactivity window, in months. Starting policy: 18 months.
|
|
DORMANT_MONTHS=18
|
|
|
|
# SAFETY: start true. Logs what WOULD happen and DMs a [DRY-RUN] mod summary,
|
|
# but limits nobody. Flip to false only after reviewing a dry run.
|
|
DORMANT_DRY_RUN=true
|
|
|
|
# Max accounts to act on per run, so a large backlog drains gradually instead of
|
|
# limiting everyone at once. (At launch ~906 accounts qualify at 18mo — drain in steps.)
|
|
DORMANT_BATCH_CAP=50
|
|
|
|
# Actor account (must hold an Admin role: Manage Users). yttrx uses `bot`.
|
|
DORMANT_BOT_ACCT=bot
|
|
|
|
# Handle (no @) to DM a per-run batch summary. Empty disables it.
|
|
DORMANT_MOD_ALERT=waffles
|
|
|
|
# Appeal / reactivation help page (DMed + referenced in the strike note).
|
|
DORMANT_HELP_URL=https://welcome.yttrx.com/posts/account-inactive/
|
|
|
|
# Never limited. Includes all current staff as an authoritative backstop on top
|
|
# of the automatic "any assigned role = staff" skip.
|
|
DORMANT_ALLOWLIST=waffles,tommertron,davis,bot
|
|
|
|
# Keep "dormant" honest: also require no API/app token use and no recent post
|
|
# within the window. Disabling either widens the net to login-only (NOT advised:
|
|
# current_sign_in_at only updates on WEB login, so it flags active app users).
|
|
DORMANT_REQUIRE_TOKEN_IDLE=true
|
|
DORMANT_REQUIRE_POST_IDLE=true
|
|
|
|
# Notification channels.
|
|
# EMAIL_NOTIFY -> native Mastodon strike email to the registered address.
|
|
# OFF by default: many dormant addresses are dead, and a bounce
|
|
# spike from admin@yttrx.com would damage yttrx's own mail
|
|
# reputation (Mastodon has no bounce suppression). The strike
|
|
# stays appealable in-app without it. If you turn this ON, keep
|
|
# DORMANT_BATCH_CAP small so bounces trickle, and watch the
|
|
# admin@yttrx.com inbox (bounces return there).
|
|
# SEND_DM -> a direct message from the bot (no bounce risk). Primary notice.
|
|
DORMANT_EMAIL_NOTIFY=false
|
|
DORMANT_SEND_DM=true
|