index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-06-30 20:13:07.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-06-30 20:19:37.0 +00:00:00
commit
34cd35b4a82ecb3b971588ea9779b77ca448a261 [patch]
tree
75ea45655a3a784f29077dc441e3ddafc81dbd24
parent
1fc9d7f18438e82a315281d36bcf0924cc60b086
download
34cd35b4a82ecb3b971588ea9779b77ca448a261.tar.gz

refactor: minor config project updates



Diff

 README.md     | 12 +++++-------
 src/config.rs |  2 +-
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index 5fde6e8..1e3a44d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Static Web Server [![CI]https://github.com/joseluisq/static-web-server/workflows/CI/badge.svg?branch=1.x]https://github.com/joseluisq/static-web-server/actions?query=workflow%3ACI [![Docker Image Version (tag latest semver)]https://img.shields.io/docker/v/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/ [![Docker Image Size (tag)]https://img.shields.io/docker/image-size/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/tags [![Docker Image]https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg]https://hub.docker.com/r/joseluisq/static-web-server/

*This is stable `v1`. For the `v2` upcoming refer to [master]https://github.com/joseluisq/static-web-server branch.*
*This is the stable `v1`. For the `v2` upcoming refer to [master]https://github.com/joseluisq/static-web-server branch.*

> A blazing fast static files-serving web server powered by [Rust Iron]https://github.com/iron/iron. ⚡

@@ -29,15 +29,13 @@

Available for download/install via following methods:

### Docker Image (Linux x86_64)
### Docker Images (Linux x86_64)

[hub.docker.com/r/joseluisq/static-web-server/]https://hub.docker.com/r/joseluisq/static-web-server/

### Release binaries

Available to download on [github.com/joseluisq/static-web-server/releases]https://github.com/joseluisq/static-web-server/releases.

Below the current supported targets.
[github.com/joseluisq/static-web-server/releases]https://github.com/joseluisq/static-web-server/releases.

#### Linux

@@ -45,7 +43,7 @@ Below the current supported targets.
- x86_64-unknown-linux-musl (64-bit)
- aarch64-unknown-linux-musl (ARM64)
- aarch64-unknown-linux-gnu (ARM64)
- arm-unknown-linux-gnueabihf (ARM64)
- arm-unknown-linux-gnueabihf (ARM)

#### macOS

@@ -86,7 +84,7 @@ Server can be configured either via environment variables or their equivalent co
CLI arguments listed with `static-web-server -h`.

```
static-web-server 1.16.0
static-web-server 1.17.1
A blazing fast static files-serving web server powered by Rust Iron

USAGE:
diff --git a/src/config.rs b/src/config.rs
index 1b01c97..fbb8a1b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,7 +1,7 @@
use structopt::StructOpt;

/// A blazing fast static files-serving web server powered by Rust Iron
#[derive(Debug, StructOpt)]
#[structopt(about, author)]
pub struct Options {
    #[structopt(long, short = "l", env = "SERVER_NAME")]
    /// Name for server