Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@orhun orhun released this 11 Dec 12:08
· 1 commit to master since this release
8954ce4

Added

Now you can configure the server to limit the total size of the uploaded files as follows:

[server]
max_upload_dir_size = "100G"

This would help with e.g. public instances in terms of avoiding a storage attack where a single user uploads a bunch of big/small files.

  • Add support for multiple auth tokens via env vars by @nydragon in #339

In addition to [server].auth_tokens and [server].delete_tokens in the configuration file, it has been made possible to set multiple tokens for authentication and deletion via their respective environment variables.

  • AUTH_TOKENS_FILE: Points to a file containing a list of tokens for authentication, one per line.
  • DELETE_TOKENS_FILE: Points to a file containing a list of tokens for deletion, one per line.

For example:

export AUTH_TOKENS_FILE=./auth_file

and auth_file contains:

bread
brioche
baguette
naan

Changed

This enable naming shortened URLs beyond using a random string or the text "url". For example:

$ curl -s -F "url=https://shorten.this" -H "filename: abc" "<server_address>"

The shortened URL will be saved as abc in the server.

  • Update all dependencies

Removed

I'm looking for a service to publicly host a rustypaste instance.
If you have any suggestions or want to sponsor this, please let me know in this issue!

New Contributors