<feed xmlns='http://www.w3.org/2005/Atom'>
<title>0x0.git/templates, branch master</title>
<subtitle>[MIRROR] Repo for No-bullshit file hosting and URL Shortening Service 0x0.st
</subtitle>
<id>https://git.bensanders.xyz/0x0.git/atom?h=master</id>
<link rel='self' href='https://git.bensanders.xyz/0x0.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/'/>
<updated>2024-09-27T17:15:57+00:00</updated>
<entry>
<title>Remove blacklist reference from default index template</title>
<updated>2024-09-27T17:15:57+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2024-09-27T17:15:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=f65bccc2aa5569a1d87f6e904d3e00c9d5a7a6de'/>
<id>urn:sha1:f65bccc2aa5569a1d87f6e904d3e00c9d5a7a6de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement request filters</title>
<updated>2024-09-27T16:30:28+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2024-08-14T06:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=45a414c5ee004fbb4e6d7563be8e65cf2be84f37'/>
<id>urn:sha1:45a414c5ee004fbb4e6d7563be8e65cf2be84f37</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>index.html: Document appending file names</title>
<updated>2022-12-01T02:28:25+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2022-12-01T02:28:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=da30c8f8ff0e2f23a974d95923273a25bc3a2a23'/>
<id>urn:sha1:da30c8f8ff0e2f23a974d95923273a25bc3a2a23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for “secret” file URLs</title>
<updated>2022-12-01T01:49:28+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2022-12-01T01:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea'/>
<id>urn:sha1:0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea</id>
<content type='text'>
Closes #47
</content>
</entry>
<entry>
<title>Allow changing expiration date</title>
<updated>2022-11-30T01:19:29+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2022-11-30T01:16:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=e1685342581604b83b4b1b6ab9b10bcde5ef9d01'/>
<id>urn:sha1:e1685342581604b83b4b1b6ab9b10bcde5ef9d01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>templates/index: Remove unnecessary escaping</title>
<updated>2022-11-30T01:19:29+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2022-11-30T00:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=afe2329bf54c6c3e4783899ad4e953d2ba8f2a43'/>
<id>urn:sha1:afe2329bf54c6c3e4783899ad4e953d2ba8f2a43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow management operations like deleting files</title>
<updated>2022-11-30T01:19:29+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2022-11-30T00:42:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=a182b6199b7f55eeb573dccd6ce7926c40043680'/>
<id>urn:sha1:a182b6199b7f55eeb573dccd6ce7926c40043680</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add support for expiring files</title>
<updated>2022-11-29T12:09:26+00:00</updated>
<author>
<name>Emi Simpson</name>
<email>emi@alchemi.dev</email>
</author>
<published>2022-11-22T21:15:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=af4b3b06c0d75a01c1fa59f1f6a4bae12e69daa5'/>
<id>urn:sha1:af4b3b06c0d75a01c1fa59f1f6a4bae12e69daa5</id>
<content type='text'>
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 &amp; max expiration + description
</content>
</entry>
<entry>
<title>Use template responses</title>
<updated>2021-05-23T17:13:51+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2020-12-29T03:06:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=d815d6855f6ea5dae73de70d04394351a01a8187'/>
<id>urn:sha1:d815d6855f6ea5dae73de70d04394351a01a8187</id>
<content type='text'>
</content>
</entry>
</feed>
