Documentation ¶
Overview ¶
fs is a minimal static file server
It is designed to efficiently serve files from a specified directory and supports various file types.
Usage ¶
fs <arguments>
Flags ¶
-path string Path to serve files from -port int Port number to listen on (default 1234)
Examples ¶
fs -path /var/www -port 8080 Custom directory and port. fs Current directory, default port. fs -path "/path/with spaces/" Directory with spaces. fs -port 8000 Change port, default path. fs -path /var/static Default port, different directory. fs -h Help message.
Install ¶
To install using go:
go install -ldflags="-s -w" git.sr.ht/~nzv/fs@latest
Or, clone the repo, modify 'cfg.mk' if you want, and use 'make':
git clone https://git.sr.ht/~nzv/fs cd fs doas make install
Click to show internal directories.
Click to hide internal directories.