Crates.io | jacuzzi |
lib.rs | jacuzzi |
version | 0.2.1 |
source | src |
created_at | 2020-09-21 02:21:02.221549 |
updated_at | 2022-10-13 00:44:33.864629 |
description | Jacuzzi is a simple (http & http2) web server for serving SPA (Single Page Applications). |
homepage | |
repository | https://github.com/manimaul/jacuzzi/ |
max_upload_size | |
id | 290991 |
size | 50,192 |
Jacuzzi is a simple (http & http2) web server for serving SPA (Single Page Applications). Jacuzzi is built with Rust on top of Warp.
Jacuzzi is configured to return the index.html
file for any GET request that would normally return a 404 (not found).
You can point Jacuzzi at a directory with index.html
in it's root and it will serve all content inside
that directory
normally. Any unknown GET request path that would normally 404 will instead 200 with the content of index.html
.
This allows the router to detect the route and serve the correct content.
Run with Cargo
TLS_DIR="$(pwd)/self_signed_cert" cargo run -- sample/
Install with Cargo
cargo install --path .
Run (After installing 😀)
TLS_DIR="$(pwd)/self_signed_cert" jacuzzi sample/
Run with Docker
docker run -p 8443:8443 manimaul/jacuzzi:0.2.1 /var/www/sample
Build with Docker
./build_container_image.sh