Skip to content

The-Fireplace/http-serve

Repository files navigation

minimum rustc: 1.88.0

Simple docker image to serve static files over HTTP and optionally redirect to HTTPS

Usage

Setup

TODO

Configuration

This image is configured via the following environment variables:

Variable Description
MOUNT_PATH The root URL for serving files from.
SERVE_FROM The path to the folder on the disk which the files are located in.
HTTPS_REDIRECT_HOST Domain name to redirect to with HTTPS redirect. If set and non-empty the container will redirect to HTTPS, regardless of current protocol.
MAX_URI_CHARACTERS The maximum length of the URI, in characters, to redirect to HTTPS. Anything over this limit will receive an HTTP 400 Bad Request.

Contributing

To enable the pre-commit hook which can run the pipeline checks locally before making a PR, run git config core.hooksPath .githooks

License

This project is licensed under either of the following licenses, at your option:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Simple rust-based docker app to serve static files over HTTP

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors