FSRV Filehost server for https://x.icyphox.sh. (NON) FEATURES · Single-user. · Serves files from the storepath. · Bring your own index.html (-index flag) · Requires a key to upload. Change the default! · Filetype hooks. (See HOOKS) USAGE Usage of ./fsrv: -index string path to index html file (default "index.html") -key string secret key; generate this yourself (default "secret") -namelen int length of random filename (default 5) -port string port to listen on (default "9393") -storepath string path to store uploaded files (default "uploads") -url string url for fsrv to serve files (default "localhost") Sample index.html is provided. Edit as required. HOOKS Hooks can be defined in the 'hooks/' directory for specific filetypes. These can be written in any language, provided the file is executable, and accepts one argument: the file to execute against. For example: the hooks/7z.sh file will run against all 7z files, and will recieve the filename as an argument ($1). The filetype is determined by parsing magic bytes, and not by file extension.
nix: init flake
Anirudh Oppiliappan x@icyphox.sh
Tue, 18 Jun 2024 00:15:41 +0300
Serve files from subdirs
Anirudh Oppiliappan x@icyphox.sh
Wed, 07 Dec 2022 22:13:22 +0530
Update readme
Anirudh Oppiliappan x@icyphox.sh
Sun, 27 Nov 2022 14:42:05 +0530
clone
git clone https://git.icyphox.sh/fsrv