A simple, convenient, reliable, well tested HTTP/HTTPS web server to host static files.
It can host a local directory or contents of a zip file.
# Host the directory you're currently in.
gowebserver
# Host your home directory.
gowebserver --directory=${HOME}
# Host a zip file from the internet.
gowebserver --directory=https://github.com/jeremyje/gowebserver/archive/v1.5.zip
Features
Zero-config required, hosts on port 80 or 8080 based on root and supports Cloud9's $PORT variable.
HTTP and HTTPs serving
Automatic HTTPs certificate generation
Optional configuration by flags or YAML config file.
Host static files from:
Local directory (current directory is default)
ZIP archive (local or from HTTP/HTTPS)
Tarball (.tar, .tar.gz, .tar.bz2) archive
Metrics export to Prometheus.
Prebuild binaries for all major OSes.
Ubuntu snappy packaging for Raspberry Pi and other IoT devices.