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 servefiles
Build the binary
go build -o ./build ./servefiles
Run the binary or copy it to your bin directory to run it from anywhere.
Run
./build/servefiles
Copy binary to bin directory (Linux)
cp ./build/servefiles /usr/local/bin
Change port
servefiles -p 8080
Regenerate certificate
servefiles -r
Set password
servefiles -P password
To 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 up
or
air