Skip to content

0.1.3 - Fixed handling for br and gz files + added aliases

Choose a tag to compare

@Pliexe Pliexe released this 23 Jan 02:14
· 7 commits to main since this release
951ea40

What's Changed

Full Changelog: 0.1.2...0.1.3

Usage

To run the server, use the following command:

https-web-server-example [OPTIONS] [PATH]

Arguments

  • PATH: Directory to serve (default: current directory)

Options

  • --cert <CERT>: Path to SSL certificate (default certs/localhost.pem)
  • --key <KEY>: Path to SSL private key (default certs/localhost-key.pem)
  • -p, --port <PORT>: Set the port number (default: 8080)
  • -s [PORT], --ssl [PORT]: Enable SSL and optionally set the port (default: 8443)
  • --enable-shared-buffer, --shared-buffer, --sharedbuf, --mt: Enable support for shared buffers (default: false)
  • --disable-cache, --no-cache, --nc: Disable cache (Cache-Control: no-cache) (default: false)
  • -h, --help: Display help information
  • -V, --version: Display version information

Examples

# Serve current directory on HTTP port 8080
https-web-server

# Serve specific directory on port 3000
https-web-server -p 3000 /path/to/directory

# Enable HTTPS with self-signed certificate
https-web-server -s

# Use custom SSL certificate
https-web-server -s --cert cert.pem --key key.pem