Simple cli tool for serving files in a directory. A silly excuse for me to write something tiny in go.

Stephen McQuay 937abcdd12 remove old hg file 2 months ago
README.md c13c59650e add support for serving TLS 3 months ago
license 9bd7e5fb14 added license 1 year ago
main.go c13c59650e add support for serving TLS 3 months ago

README.md

Simple cli tool for serving files in a directory.

Installation:

go get mcquay.me/servedir

use:

servedir  # default port

# specify port
servedir -port 6666

# allow serving hidden files/dirs
servedir -hidden

# serve https, with http redirect
TLS_CERT=/path/to/cert.pem TLS_KEY=/path/to/key.pem servedir

# or see -help