index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-06-02 22:12:44.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-06-02 22:12:44.0 +00:00:00
commit
e821d56d6a32db550075e73fee1be981c752c178 [patch]
tree
0dd43e4b3fe7f3c3b5ca99f732accc1f48df5599
parent
7cbe483f84d9deee9091ef3bd80580c55c7bfde6
download
e821d56d6a32db550075e73fee1be981c752c178.tar.gz

v2.0.0-beta.4



Diff

 .drone.yml                | 16 ----------------
 Cargo.lock                |  2 +-
 Cargo.toml                |  4 ++--
 README.md                 | 12 ++++++------
 docker/alpine/Dockerfile  |  4 ++--
 docker/scratch/Dockerfile |  4 ++--
 6 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index 098988c..cea8b37 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -61,14 +61,6 @@ platform:
  arch: amd64

steps:
- name: test
  image: joseluisq/rust-linux-darwin-builder:1.52.1
  commands:
    - make test
  when:
    event:
    - tag

- name: release
  image: joseluisq/rust-linux-darwin-builder:1.52.1
  commands:
@@ -172,14 +164,6 @@ platform:
  arch: amd64

steps:
- name: test
  image: joseluisq/rust-linux-darwin-builder:1.52.1
  commands:
    - make test
  when:
    event:
    - tag

- name: release
  image: joseluisq/rust-linux-darwin-builder:1.52.1
  commands:
diff --git a/Cargo.lock b/Cargo.lock
index cf6d4c7..813c69e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -851,7 +851,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"

[[package]]
name = "static-web-server"
version = "2.0.0-beta.3"
version = "2.0.0-beta.4"
dependencies = [
 "anyhow",
 "async-compression",
diff --git a/Cargo.toml b/Cargo.toml
index ed37d45..0c76d54 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,9 +1,9 @@
[package]
name = "static-web-server"
version = "2.0.0-beta.3"
version = "2.0.0-beta.4"
authors = ["Jose Quintana <https://git.io/joseluisq>"]
license = "MIT OR Apache-2.0"
description = "A blazing fast static files-serving web server."
description = "A blazing fast and asynchronous web server for static files-serving."
repository = "https://github.com/joseluisq/static-web-server"
readme = "README.md"
keywords = [
diff --git a/README.md b/README.md
index 0287a26..290adb1 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@

**Status:** `v2` is under **active** development. For the stable `v1` please refer to [1.x]https://github.com/joseluisq/static-web-server/tree/1.x branch.

> A blazing fast static files-serving web server. ⚡
> A blazing fast and asynchronous web server for static files-serving. ⚡

**Static Web Server** is a very small and fast production-ready web server to serving static web files or assets.

@@ -10,8 +10,8 @@

- Built with [Rust]https://rust-lang.org which is focused on [safety, speed, and concurrency]https://kornel.ski/rust-c-speed.
- Memory safety and very reduced CPU and RAM overhead.
- Blazing fast static files-serving and asynchronous powered by [Hyper]https://github.com/hyperium/hyper/ `v0.14`, [Tokio]https://github.com/tokio-rs/tokio `v1` and a set of [awesome crates]./Cargo.toml.
- Suitable for lightweight [GNU/Linux Docker containers]https://hub.docker.com/r/joseluisq/static-web-server/tags. It's a fully __5MB__ 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.
- Blazing fast static files-serving and asynchronous powered by latest [Hyper]https://github.com/hyperium/hyper/, [Tokio]https://github.com/tokio-rs/tokio and a set of [awesome crates]./Cargo.toml.
- Single __4MB__ and fully static binary with no dependencies ([Musl libc]https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html). Suitable for running on [any Linux distro]https://en.wikipedia.org/wiki/Linux_distribution or [Docker container]https://hub.docker.com/r/joseluisq/static-web-server/tags.
- GZip, Deflate or Brotli compression for text-based web files only.
- Compression on demand via [Accept-Encoding]https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding header.
- [Partial Content Delivery]https://en.wikipedia.org/wiki/Byte_serving support for byte-serving of large files.
@@ -26,8 +26,8 @@
- Default and custom error pages.
- Configurable using CLI arguments or environment variables.
- First-class [Docker]https://docs.docker.com/get-started/overview/ support. [Scratch]https://hub.docker.com/_/scratch and latest [Alpine Linux]https://hub.docker.com/_/alpine Docker images available.
- The ability to accept a socket listener as a file descriptor for use in sandboxing and on-demand applications (E.g [systemd]http://0pointer.de/blog/projects/socket-activation.html).
- MacOs binary support thanks to [Rust Linux / Darwin Builder]https://github.com/joseluisq/rust-linux-darwin-builder.
- The ability to accept a socket listener as a file descriptor for use in sandboxing and on-demand applications.

## Releases

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

```
static-web-server 2.0.0-beta.3
static-web-server 2.0.0-beta.4
A blazing fast static files-serving web server powered by Rust

USAGE:
@@ -142,7 +142,7 @@ version: "3.3"

services:
  web:
    image: joseluisq/static-web-server:2.0.0-beta.3
    image: joseluisq/static-web-server:2.0.0-beta.4
    environment:
        - SERVER_HOST=127.0.0.1
        - SERVER_PORT=80
diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile
index d3d77cc..cd1ac8b 100644
--- a/docker/alpine/Dockerfile
+++ b/docker/alpine/Dockerfile
@@ -4,7 +4,7 @@ ARG SERVER_VERSION=0.0.0
ENV SERVER_VERSION=${SERVER_VERSION}

LABEL version="${SERVER_VERSION}" \
    description="A blazing fast static files-serving web server." \
    description="A blazing fast and asynchronous web server for static files-serving." \
    maintainer="Jose Quintana <joseluisq.net>"

RUN apk --no-cache add ca-certificates tzdata
@@ -28,6 +28,6 @@ CMD ["static-web-server"]
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://github.com/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast static files-serving web server." \
    org.opencontainers.image.description="A blazing fast and asynchronous web server for static files-serving." \
    org.opencontainers.image.version="${SERVER_VERSION}" \
    org.opencontainers.image.documentation="https://github.com/joseluisq/static-web-server"
diff --git a/docker/scratch/Dockerfile b/docker/scratch/Dockerfile
index b27f2f3..1325711 100644
--- a/docker/scratch/Dockerfile
+++ b/docker/scratch/Dockerfile
@@ -4,7 +4,7 @@ ARG SERVER_VERSION=0.0.0
ENV SERVER_VERSION=${SERVER_VERSION}

LABEL version="${SERVER_VERSION}" \
    description="A blazing fast static files-serving web server." \
    description="A blazing fast and asynchronous web server for static files-serving." \
    maintainer="Jose Quintana <joseluisq.net>"

COPY ./bin/static-web-server /
@@ -18,6 +18,6 @@ ENTRYPOINT ["/static-web-server"]
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://github.com/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast static files-serving web server." \
    org.opencontainers.image.description="A blazing fast and asynchronous web server for static files-serving." \
    org.opencontainers.image.version="${SERVER_VERSION}" \
    org.opencontainers.image.documentation="https://github.com/joseluisq/static-web-server"