コミットグラフ

10 コミット

作成者 SHA1 メッセージ 日付
Izuru Yakumo 66db42e7b3 It's 0x0a not 0x0
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
2023-05-19 16:07:48 -03:00
Izuru Yakumo d230f9461b .rst is horrible, use html 3.2 with almost all templates, ascii art included as a bonus
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
2023-05-18 23:51:08 -03:00
Izuru Yakumo b5079c5d82 Added sample service file and sample app.ini, reworked main template.
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
2023-04-11 16:18:53 -03:00
Mia Herkt da30c8f8ff
index.html: Document appending file names 2022-12-01 03:28:25 +01:00
Mia Herkt 0b80a62f80
Add support for “secret” file URLs
Closes #47
2022-12-01 02:49:28 +01:00
Mia Herkt e168534258
Allow changing expiration date 2022-11-30 02:19:29 +01:00
Mia Herkt afe2329bf5
templates/index: Remove unnecessary escaping 2022-11-30 02:19:29 +01:00
Mia Herkt a182b6199b
Allow management operations like deleting files
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-30 02:19:29 +01:00
Emi Simpson af4b3b06c0
Add support for expiring files
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
2022-11-29 13:09:26 +01:00
Mia Herkt d815d6855f
Use template responses 2021-05-23 19:13:51 +02:00