When a posted video is too long (>1h, probed up front) or a normal download fails as too-big/timeout, the bot offers /force. Replying /force downloads the full video off-loop (separate slot, no size cap, --max-filesize 10G), uploads it via rsync/SSH to a web docroot, and posts a tokenized link auto-deleted after 24h by an hourly sweep (also evicts oldest past 10 GB; remote-clock TTL; only ever removes its own token dirs). Hosting target is env-configured (FORCE_REMOTE/FORCE_REMOTE_DIR/FORCE_BASE_URL/ FORCE_SSH_PORT/FORCE_SSH_KEY) so published code carries no infra details; the feature self-disables when unset (probe is skipped too, so normal posting is unchanged). Staged on disk (not tmpfs), self-heals orphaned staging dirs, and re-arms the offer on transient failure. See signal-bot.service.example. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
48 KiB
48 KiB