index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2022-08-15 20:51:43.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2022-08-15 20:51:43.0 +00:00:00
commit
0dde40528d02849e30e505396ec42eba4c06f488 [patch]
tree
3fa7224ac69c83b7dcccd140fc0b23ce4c4f84d1
parent
10f403f1b265c418caa70c6861ae46f5c4516c0a
download
0dde40528d02849e30e505396ec42eba4c06f488.tar.gz

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(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2b1c81a..9bd1668 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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__
diff --git a/Cargo.lock b/Cargo.lock
index 026bb37..b4cd7eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -955,7 +955,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"

[[package]]
name = "static-web-server"
version = "2.10.0"
version = "2.11.0"
dependencies = [
 "anyhow",
 "async-compression",
diff --git a/Cargo.toml b/Cargo.toml
index 08f156c..6a47e8a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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."
diff --git a/docs/content/configuration/command-line-arguments.md b/docs/content/configuration/command-line-arguments.md
index ac8f538..2ed7f2a 100644
--- a/docs/content/configuration/command-line-arguments.md
+++ b/docs/content/configuration/command-line-arguments.md
@@ -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]

diff --git a/src/settings/cli.rs b/src/settings/cli.rs
index ec3ded3..912c194 100644
--- a/src/settings/cli.rs
+++ b/src/settings/cli.rs
@@ -185,7 +185,7 @@ pub struct General {
        default_value = "true",
        env = "REDIRECT_TRAILING_SLASH"
    )]
    /// Check for trailing slash in the requested directory uri and redirect permanent (308) to the same path with a trailing slash suffix if it is missing.
    /// 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.
    pub redirect_trailing_slash: bool,

    //