Added
- Support
max_upload_dir_size
by @Narayanbhat166
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.
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
- Allow shortening URLs with a filename by @Vaelatern in #373
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
- @Narayanbhat166 made their first contribution
- @Vaelatern made their first contribution in #374
- @nydragon made their first contribution in #339