Skip to content

Releases: palant/pingora-utils

v0.2.0

12 May 13:36
Compare
Choose a tag to compare

💥 BREAKING CHANGES

  • due to f0b82e1 - Introduced Virtual Hosts Module implementing per-host handler configuration (commit by @palant):

    Calling StaticFilesHandler::new() and StaticFilesHandler::handle() now requires the module_utils::RequestFilter trait to be in scope.

    StaticFilesHandler::handle() now takes the context as an additional (unused) parameter.

  • due to a66fdc6 - If no root is configured, disable the module (commit by @palant):

    StaticFilesConf.root is an Option<PathBuf>, no longer PathBuf

  • due to 062126e - Do not respond with 404 when not configured, ignore request instead (commit by @palant):

    With default configuration, Static Files Module will leave all requests unhandled

✨ New Features

  • 8e98035 - module-utils: Added FromYaml trait to simplify extending Pingora configuration files (commit by @palant)
  • dfa1933 - module-utils: Added merge_opt and merge_conf macros, simplifying extending configuration structures (commit by @palant)
  • f0b82e1 - virtual-hosts-module: Introduced Virtual Hosts Module implementing per-host handler configuration (commit by @palant)
  • fda9c11 - compression-module: Added Compression Module to simplify configuration of Pingora's compression (commit by @palant)
  • bc57d8e - upstream-module: Added Upstream Module to help configure upstream connections (commit by @palant)
  • a66fdc6 - static-files-module: If no root is configured, disable the module (commit by @palant)
  • d591bfe - virtual-hosts-module: Added per-directory configurations (commit by @palant)

🐛 Bug Fixes

  • 227af31 - module-utils: Fixed compile error due to missing symbol (commit by @palant)

♻️ Refactors

  • cb093fd - module-utils: Removed unnecessary type qualifier (commit by @palant)
  • 761229d - module-utils: Renamed pingora-utils-core crate into module-utils (commit by @palant)
  • a16fc2f - module-utils: Somewhat hardened macros against namespace collisions (commit by @palant)
  • 0d302da - module-utils: Turned macros into procedural macros (commit by @palant)
  • 062126e - static-files-module: Do not respond with 404 when not configured, ignore request instead (commit by @palant)

🔧 Chores

v0.1.0

08 May 21:16
Compare
Choose a tag to compare

This is the initial release. It includes Static Files Module with the following functionality:

  • GET and HEAD requests
  • Configurable directory index files (index.html by default)
  • Page configurable to display on 404 Not Found errors instead of the standard error page
  • Conditional requests via If-Modified-Since, If-Unmodified-Since, If-Match, If-None match HTTP headers
  • Byte range requests via Range and If-Range HTTP headers
  • Compression support: serving pre-compressed versions of the files (gzip, zlib deflate, compress, Brotli, Zstandard algorithms supported)
  • Compression support: dynamic compression via Pingora (currently gzip, Brotli and Zstandard algorithms supported)