This is a simple HTTPS server that serves a static files from a directory.
Download the binary from the releases page or build it from source.
git clone https://github.com/Elixir-Craft/servefiles.git
cd servefilesBuild the binary
go build -o ./build ./servefilesRun the binary or copy it to your bin directory to run it from anywhere.
Run
./build/servefilesCopy binary to bin directory (Linux)
cp ./build/servefiles /usr/local/binChange port
servefiles -p 8080Regenerate certificate
servefiles -rSet password
servefiles -P passwordTo set configuration file for certificate, create a file named config.yaml in the servefile configuration directory.
on Linux, the configuration directory is ~/.ServeFiles/
cert:
organization: "Your Company Name"
country: "Your Country"
province: "Your Province"
locality: "Your City"
street_address: "Your Street Address"
postal_code: "Your Postal Code"Run
docker compose upor
air