index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2020-03-03 9:30:48.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2020-03-03 9:30:48.0 +00:00:00
commit
34e0c597ec4a9e93ad0df20ebe39732c97a9942d [patch]
tree
a010ab1e93e164802927daed383212e7c674b5b6
parent
2adc5db8513b62bd660f85d117b59e418f6328b6
download
34e0c597ec4a9e93ad0df20ebe39732c97a9942d.tar.gz

docs: minor update descriptions



Diff

 LICENSE-MIT | 39 ++++++++++++++++++---------------------
 README.md   | 23 +++++++++++++++--------
 2 files changed, 33 insertions(+), 29 deletions(-)

diff --git a/LICENSE-MIT b/LICENSE-MIT
index 31aa793..0e60829 100644
--- a/LICENSE-MIT
+++ b/LICENSE-MIT
@@ -1,23 +1,20 @@
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The MIT License (MIT)

The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
Copyright (c) 2019-present Jose Quintana <https://git.io/joseluisq>

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index ea68122..ac5165f 100644
--- a/README.md
+++ b/README.md
@@ -10,17 +10,24 @@
- Memory safety and reduced overhead of CPU and RAM resources.
- Blazing fast static files-serving thanks to [Rust Iron]https://github.com/iron/iron.
- Suitable for small [GNU/Linux Docker containers]https://hub.docker.com/r/joseluisq/static-web-server. It's a fully __4MB__ static binary thanks to [Rust and Musl libc]https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html (`x86_64-unknown-linux-musl`).
- Gzip compression by default.
- Cache control headers included.
- Gzip compression on demand via `accept-encoding` header.
- Assets Cache control headers support.
- Configurable via environment variables or CLI arguments.
- TLS support via [Rust Native TLS]https://docs.rs/native-tls/0.2.3/native_tls/ crate.
- Lightweight logging support.
- MacOs (`x86_64-apple-darwin`) binary support thanks to [Rust Linux / Darwin Builder]https://github.com/joseluisq/rust-linux-darwin-builder.
- [Scratch]https://hub.docker.com/_/scratch and [latest Alpine Linux]https://hub.docker.com/_/alpine Docker images available.
- MacOs binary support (`x86_64-apple-darwin`) thanks to [Rust Linux / Darwin Builder]https://github.com/joseluisq/rust-linux-darwin-builder.
- [Scratch]https://hub.docker.com/_/scratch and latest [Alpine Linux]https://hub.docker.com/_/alpine Docker images available.

## Releases

Available for download/install via following methods:

- **Docker Image** on [hub.docker.com/r/joseluisq/static-web-server/]https://hub.docker.com/r/joseluisq/static-web-server/
- **Release binaries** for `GNU/Linux` and `MacOS` x86_64 on [github.com/joseluisq/static-web-server/releases]https://github.com/joseluisq/static-web-server/releases.

## Usage

Server can be configured either via environment variables or command-line arguments.
Server can be configured either via environment variables or their equivalent command-line arguments.

### Environment Variables

@@ -83,13 +90,13 @@ An identity is an [X509 certificate](https://en.wikipedia.org/wiki/X.509) certif

For instance, identity files (`.p12` or `.pfx`) can be generated using the [OpenSSL SSL/TLS Toolkit]https://www.openssl.org/docs/manmaster/man1/pkcs12.html:

Generate a self-signed certificate:
Generate a self-signed certificate (optional):

```sh
openssl req -x509 -newkey rsa:4096 -nodes -keyout local.key -out local.crt -days 3650
```

Generate a PKCS #12 indentity file:
Generate a PKCS #12 indentity file (using an existing certificate and private key):

```sh
openssl pkcs12 -export -out identity.p12 -inkey local.key -in local.crt -password pass:my_password
@@ -97,7 +104,7 @@ openssl pkcs12 -export -out identity.p12 -inkey local.key -in local.crt -passwor

## Docker stack

Example using [Traefik proxy]https://traefik.io/:
Example using [Traefik Proxy]https://traefik.io/:

```yaml
version: "3.3"