chore(release): prepare for v0.10.0
This commit is contained in:
parent
4f539d2246
commit
d4d8a28783
38
CHANGELOG.md
38
CHANGELOG.md
|
@ -5,6 +5,44 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.10.0] - 2023-05-31
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support one shot URLs
|
||||||
|
|
||||||
|
With using the `oneshot_url` multipart field, you can now shorten an URL and make it disappear after viewed once:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -F "oneshot_url=https://example.com" "<server_address>"
|
||||||
|
```
|
||||||
|
|
||||||
|
- Allow configuring the content type for the landing page
|
||||||
|
|
||||||
|
`landing_page_content_type` is added as a configuration option for setting the [`Content-Type`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) header:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[server]
|
||||||
|
landing_page = ""
|
||||||
|
landing_page_content_type = "text/plain; charset=utf-8"
|
||||||
|
```
|
||||||
|
|
||||||
|
- Add information/example about using HTML forms
|
||||||
|
|
||||||
|
With utilizing the newly added option for the content type, you can now use HTML forms for the landing page:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[server]
|
||||||
|
landing_page = "<html>"
|
||||||
|
landing_page_content_type = "text/html; charset=utf-8"
|
||||||
|
```
|
||||||
|
|
||||||
|
There is an example added to the repository: [html_form.toml](https://github.com/orhun/rustypaste/blob/1a8958966972f2afb04a12cb2f5537a1d971561c/examples/html_form.toml)
|
||||||
|
|
||||||
|
Also, there is an ongoing discussion about refactoring the usage of landing page fields in the configuration file. See [#52](https://github.com/orhun/rustypaste/issues/52)
|
||||||
|
|
||||||
|
- An informative log message is added for showing the server address at startup
|
||||||
|
|
||||||
## [0.9.1] - 2023-05-24
|
## [0.9.1] - 2023-05-24
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -2262,7 +2262,7 @@ checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustypaste"
|
name = "rustypaste"
|
||||||
version = "0.9.1"
|
version = "0.10.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-files",
|
"actix-files",
|
||||||
"actix-multipart",
|
"actix-multipart",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rustypaste"
|
name = "rustypaste"
|
||||||
version = "0.9.1"
|
version = "0.10.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A minimal file upload/pastebin service"
|
description = "A minimal file upload/pastebin service"
|
||||||
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
|
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
|
||||||
|
|
Loading…
Reference in New Issue