summaryrefslogtreecommitdiff
path: root/migrations/versions
AgeCommit message (Collapse)Author
2024-09-27PEP8 complianceMia Herkt
2024-09-27Implement request filtersMia Herkt
This moves preexisting blacklists to the database, and adds the following filter types: * IP address * IP network * MIME type * User agent In addition, IP address handling is now done with the ipaddress module.
2023-03-29Store user agent with filesMia Herkt
Needed for moderation.
2022-12-20migrations: Fix file expirations on SQLiteMia Herkt
Well that was what we feared. I love arbitrary hardcoded limits.
2022-12-13Record file sizes in dbMia Herkt
Moderation interface is going to use this.
2022-12-12Add support for ClamAVMia Herkt
2022-12-01Add support for “secret” file URLsMia Herkt
Closes #47
2022-11-30Allow management operations like deleting filesMia Herkt
This introduces the X-Token header field in the response of newly uploaded files as a simple way for users to manage their own files. It does not need to be particularly secure.
2022-11-29Add support for expiring filesEmi Simpson
SUPPLEMENTALLY: - Add an `expiration` field to the `file` table of the database - Produce a migration for the above change - Overhaul the cleanup script, and integrate into fhost.py (now run using FLASK_APP=fhost flask prune) - Replace the old cleanup script with a deprecation notice - Add information about how to expire files to the index - Update the README with information about the new script Squashed commits: Add a note explaining that expired files aren't immediately removed Show correct times on the index page graph Improve the migration script, removing the need for --legacy Use automap in place of an explicit file map in migration Remove vestigial `touch()` Don't crash when upgrading a fresh database Remove vestigial warning about legacy files More efficiently filter to unexpired files when migrating https://git.0x0.st/mia/0x0/pulls/72#issuecomment-224 Coalesce updates to the database during migration https://git.0x0.st/mia/0x0/pulls/72#issuecomment-226 Remove vestigial database model https://git.0x0.st/mia/0x0/pulls/72#issuecomment-261 prune: Stream expired files from the database (as opposed to collecting them all first) config.example.py: Add min & max expiration + description
2017-10-27Add NSFW detectionMartin Herkt
2016-11-01initMartin Herkt