Emi Tatsuo
48c0783e36
Specifically: - Serve NOT_FOUND when file or directory doesn't exist - Serve NOT_FOUND and warn in log when permission denied for file or directory - Serve SERVER_ERROR and warn in log when permission denied or not found for path to serve from - Serve SERVER_ERROR and warn in log with a link to the GH if an unexpected error happens |
||
---|---|---|
examples | ||
public | ||
src | ||
.gitignore | ||
Cargo.toml | ||
CHANGELOG.md | ||
README.md |
__ __ __
____ ____ _____/ /_/ /_ _____/ /_____ ______
/ __ \/ __ \/ ___/ __/ __ \/ ___/ __/ __ `/ ___/
/ / / / /_/ / / / /_/ / / (__ ) /_/ /_/ / /
/_/ /_/\____/_/ \__/_/ /_/____/\__/\__,_/_/
Usage
Add the latest version of northstar to your Cargo.toml
.
Manually
northstar = "0.3.0" # check crates.io for the latest version
Automatically
cargo add northstar
Generating a key & certificate
Run
mkdir cert && cd cert
openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
and enter your domain name (e.g. "localhost" for testing) as Common Name (CN).
Alternatively, if you want to include multiple domains add something like -addext "subjectAltName = DNS:localhost, DNS:example.org"
.