Simple docker image to serve static files over HTTP and optionally redirect to HTTPS
TODO
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. |
To enable the pre-commit hook which can run the pipeline checks locally before making a PR, run git config core.hooksPath .githooks
This project is licensed under either of the following licenses, at your option:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.