ITADN
orhun/rustypaste

版本发布 8

v0.16.1
? · 2025-03-21

### Added - Add unofficial clients to the documentation 1. Droidypaste Yes, you heard it right! `rustypaste` now has an Android client! ![](https://raw.githubusercontent.com/rukh-debug/droidypaste/main/assets/1.png) GitHub: <https://github.com/rukh-debug/droidypaste> 2. Ferripaste An alternative Rustypaste client GitHub: <https://github.com/dbohdan/ferripaste> 3. Rustypaste-GUI A script for a mininal GUI client for `rustypaste` (powered by zenity) GitHub: <https://gist.github.com/rukh-debug/cc42900f86e39cacef6f7a6ba77ebf58> ### Changed - Use fully locked system accounts on systemd257 - Bump to Rust 2024 edition - Update dependencies ### New Contributors - @rukh-debug made their first contribution in [#407](https://github.com/orhun/rustypaste/pull/407)

v0.16.0
? · 2024-12-11

### 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: ```toml [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](https://github.com/orhun/rustypaste/pull/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: ```plaintext bread brioche baguette naan ``` ### Changed - Allow shortening URLs with a filename by @Vaelatern in [#373](https://github.com/orhun/rustypaste/pull/373) This enable naming shortened URLs beyond using a random string or the text "url". For example: ```sh $ 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 - Remove shuttle code and deps by @tessus in [#328](https://github.com/orhun/rustypaste/pull/328) 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](https://github.com/orhun/rustypaste/issues/326)! ## New Contributors - @Narayanbhat166 made their first contribution - @Vaelatern made their first contribution in [#374](https://github.com/orhun/rustypaste/pull/374) - @nydragon made their first contribution in [#339](https://github.com/orhun/rustypaste/pull/339)

v0.15.1
? · 2024-07-29

### Added - Include file creation date in the file list (`creation_date_utc`) ```sh $ curl "http://<server_address>/list" | jq . [ { "file_name": "immense-goose.txt", "file_size": 416, "creation_date_utc": "2024-06-12 19:21:56", "expires_at_utc": null } ] ``` - Enable Docker ARM64 builds - Add @tessus as a maintainer ### Removed - Remove public instance link and blog post from README.md ### Fixed - Fix uploading reports to codecov ## New Contributors * @viktaur made their first contribution in https://github.com/orhun/rustypaste/pull/294 **Full Changelog**: https://github.com/orhun/rustypaste/compare/v0.15.0...v0.15.1

v0.15.0
? · 2024-03-27

### Added - Allow to override filename when using `random_url` by @tessus in [#233](https://github.com/orhun/rustypaste/pull/233) Now you can use the `filename` header to override the name of the uploaded file. For example: ```sh curl -F "file=@x.txt" -H "filename:override.txt" http://localhost:8000 ``` Even if `random_url` is set, the filename will be override.txt [`rustypaste-cli`](https://github.com/orhun/rustypaste-cli) also has a new argument for overriding the file name: ```sh rpaste -n filename-on-server.txt awesome.txt ``` - Use more specific HTTP status codes by @tessus in [#262](https://github.com/orhun/rustypaste/pull/262) `rustypaste` now returns more appropriate status codes in the following 2 cases (instead of a generic 500 code): - If the mime type is on the blacklist: `UnsupportedMediaType` (415) - If the file already exists: `Conflict` (409) ### Changed - Do path joins more safely by @RealOrangeOne in [#247](https://github.com/orhun/rustypaste/pull/247) - Gracefully exit when there is no config file found by @orhun - Switch to cargo-llvm-cov for code coverage by @orhun in [#260](https://github.com/orhun/rustypaste/pull/260) - Replace unmaintained action by @tessus in [#266](https://github.com/orhun/rustypaste/pull/266) - Set up mergify by @orhun - Apply clippy suggestions by @orhun - Update funding options by @orhun - Update the copyright years by @orhun - Bump dependencies ### Fixed - Improve logging for deleted file by @tessus in [#235](https://github.com/orhun/rustypaste/pull/235) - Fix deployment by @tessus in [#236](https://github.com/orhun/rustypaste/pull/236) - Return the correct file on multiple files with same name by @tessus in [#234](https://github.com/orhun/rustypaste/pull/234) - Update the hash of the example file by @tessus in [#254](https://github.com/orhun/rustypaste/pull/254) - Error on upload with the same filename by @tessus in [#258](https://github.com/orhun/rustypaste/pull/258) ### New Contributors - @RealOrangeOne made their first contribution in [#247](https://github.com/orhun/rustypaste/pull/247)

v0.14.4
? · 2023-12-20

### Removed - Remove excessive warning messages when auth tokens are not found (#210) (Thanks @tessus!)

v0.14.3
? · 2023-12-12

### Changed - Return `404` for not exposed endpoints instead of `403` - Disallow blank `delete_tokens` and `auth_tokens` - Bump dependencies

v0.14.2
? · 2023-12-05

### Added - Add installation instructions for FreeBSD (#177) - Add auth token handling to HTML form example (#183) - Add release instructions ### Changed - Bump Shuttle to `0.34.1` - Bump dependencies

v1.14.1v0.14.1
? · 2023-11-02

### Changed - Switch to `tracing` for logging (#163) - Bump Shuttle to `0.31.0` - Bump dependencies