Simple, secure and modern Go HTTP server to serve static sites, single-page applications or a file with ease
Simple and secure Go HTTP
server to serve static sites or files from the command-line.
go install github.com/kevinpollet/serve
Usage: serve [options]
Options:
-addr Sets the server address. Default is "127.0.0.1:8080".
-auth Sets the basic auth credentials (password must be hashed with bcrypt and escaped with '').
-auth-file Sets the basic auth credentials following the ".htpasswd" format.
-dir Sets the directory containing the files to serve. Default is ".".
-cert Sets the TLS certificate.
-key Sets the TLS private key.
-help Prints this text.
A Docker image is available to serve static files from a running Docker
container. By default, all files located in the /var/www/
directory will be made available through TCP connections on
port 8080
. For more details, check out the Docker example.
PRs welcome!
Want to file a bug or request a feature?