v2.11.0
Diff
CHANGELOG.md | 16 ++++++++++++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
docs/content/configuration/command-line-arguments.md | 4 ++--
src/settings/cli.rs | 2 +-
5 files changed, 21 insertions(+), 5 deletions(-)
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
_**Note:** See changelog for v1 under the [1.x](https://github.com/joseluisq/static-web-server/blob/1.x/CHANGELOG.md) branch._
## v2.11.0 - 2022-08-15
__Fixes__
- [1b7636c](https://github.com/joseluisq/static-web-server/commit/1b7636c) Bugfix/security dependency updates including tokio, serde, tracing, libc, futures and other crates (also [6840d0f](https://github.com/joseluisq/static-web-server/commit/6840d0f), [32517b6](https://github.com/joseluisq/static-web-server/commit/32517b6)).
- [6570498](https://github.com/joseluisq/static-web-server/commit/6570498) Enable the missing `windows-service` option when used via the config file.
__Features__
- [5163564](https://github.com/joseluisq/static-web-server/commit/5163564) New `redirect-trailing-slash` option. PR [#131](https://github.com/joseluisq/static-web-server/pull/131) by [@phartenfeller](https://github.com/phartenfeller). See [docs](https://sws.joseluisq.net/features/trailing-slash-redirect/).
__Docs__
- [10f403f](https://github.com/joseluisq/static-web-server/commit/10f403f) Redirect trailing slash page.
- [e4228af](https://github.com/joseluisq/static-web-server/commit/e4228af) Typos and content improvements (also [e674940](https://github.com/joseluisq/static-web-server/commit/e674940)).
## v2.10.0 - 2022-07-10
__Fixes__
@@ -955,7 +955,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "static-web-server"
version = "2.10.0"
version = "2.11.0"
dependencies = [
"anyhow",
"async-compression",
@@ -1,6 +1,6 @@
[package]
name = "static-web-server"
version = "2.10.0"
version = "2.11.0"
authors = ["Jose Quintana <https://joseluisq.net>"]
license = "MIT OR Apache-2.0"
description = "A blazing fast and asynchronous web server for static files-serving."
@@ -89,8 +89,8 @@ OPTIONS:
a generic HTML error message [env: SERVER_ERROR_PAGE_50X=] [default: ./public/50x.html]
-p, --port <port> Host port [env: SERVER_PORT=] [default: 80]
--redirect-trailing-slash <redirect-trailing-slash>
Check for a trailing slash in the requested directory uri and redirect permanent (308) to the same path with a
trailing slash suffix if it is missing [env: REDIRECT_TRAILING_SLASH=] [default: true]
Check for a trailing slash in the requested directory URI and redirect permanently (308) to the same path
with a trailing slash suffix if it is missing [env: REDIRECT_TRAILING_SLASH=] [default: true]
-d, --root <root>
Root directory path of static files [env: SERVER_ROOT=] [default: ./public]
@@ -185,7 +185,7 @@ pub struct General {
default_value = "true",
env = "REDIRECT_TRAILING_SLASH"
)]
pub redirect_trailing_slash: bool,