github orhun/rustypaste v0.11.0

latest releases: v0.15.1, v0.15.0, v0.14.4...
15 months ago

Added

  • Add a new section for the landing page
    • Also, support a file for the landing page (#64)

Migration path:

Old:

[server]
landing_page = "Landing page text."
landing_page_file = "index.html"
landing_page_content_type = "text/html; charset=utf-8"

New:

[landing_page]
text = "Landing page text."
file = "index.html"
content_type = "text/html; charset=utf-8"

The configuration is backwards compatible but we recommend using the new landing_page section as shown above since the other fields are now deprecated.

  • Add random suffix mode (#69)
    • Support appending a random suffix to the filename before the extension. For example, foo.tar.gz will result in foo.eu7f92x1.tar.gz

To enable, set suffix_mode to true:

[paste]
random_url = { enabled = true, type = "alphanumeric", length = 6, suffix_mode = true }
  • Honor X-Forward-* headers (X-Forwarded-For / X-Forwarded-Host / X-Forwarded-Proto) (#61)

    • This would be really useful to have for setups where the service is running behind a reverse-proxy or gateway and the possibility to adjust the logging output based on their availability, to have the real IP addresses of the clients available in the log.
  • Add new line character to the 404 message (#72)

Terminal output will look better when the file is not found:

$ curl http://localhost:8000/sweeping-tahr
file is not found or expired :(
  • Add editorconfig for correctly formatting the test fixture files
  • Add pull request template

Changed

Fixed

  • Use the static folder for the Shuttle config (#70)
    • There was a regression in the previous release that has caused the static folder to be not present in Shuttle deployments. This shouldn't be an issue anymore and the deployment should be live.
    • Also, it is now possible to trigger a deployment manually via GitHub Actions.

Thanks to @tessus for his contributions to this release!

Don't miss a new rustypaste release

NewReleases is sending notifications on new releases.