Remove unreferenced uploads and attach them to expiry mails

HedgeDoc doesn't track uploaded files, so they stay on disk after their
note is deleted. If UPLOADS_PATH is set, expire now removes uploads that
no remaining note or revision references and that are older than -u DAYS
(default 1). check and emailcheck list the files that would be removed.

Expiry mails now include the note's uploads as attachments, up to a total
of MAX_ATTACHMENT_SIZE bytes (default 20 MB); files that don't fit are
listed in the mail text instead.
This commit is contained in:
Stefan Bethke 2026-10-27 12:55:20 +01:00
commit 6a0d4365ca

View file

@ -49,6 +49,9 @@ services:
command: "-v -r .001 -n .001 check"
environment:
- "POSTGRES_HOSTNAME=database"
- "UPLOADS_PATH=/uploads"
volumes:
- uploads:/uploads
depends_on:
- database