A simple zero-configuration static file server.
Download the latest binary for your platform from the releases page, and run it from the command line
GO111MODULE=on go get -v -u github.com/rbague/simplefileservergit clone https://github.com/rbague/simplefileserver.git && cd simplefileserver
make setup build-current # generates sfs binarygit clone https://github.com/rbague/simplefileserver.git && cd simplefileserver
make # will generate all the binaries under bin with the following format sfs-GOOS-GOARCHThe server is ready to be used without any configuration, however, there a few options to customize it:
In order to run the server with TLS activated, pass both the cert-file and key-file flags to the startup command.
To enable it locally, you can generate self-signed certificates using mkcert or with the following command
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365The software is available as open source under the terms of the MIT License.
