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:
parent
2da0096453
commit
6a0d4365ca
1 changed files with 178 additions and 21 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue