grundstein static (file) server
serves a local directory from disk.
video and audio files get sent as streams
if .gz files exist. no runtime-compression.
cache control headers cache client files. if public/etags.csv exists, which @grundstein/prepare-static-files generates, the contents of this file will be used as cache.
server (re)starts in ~15 ms. responses take 0.1 - 0.5 ms before sending the first bits back. load does not change this numbers until the hard disc bandwith limits are reached.
npm i -g @grundstein/gss
// show full help
gss --help
// serve the ./public directory
gss --dir public
// serve specific directory
gss --dir local/directory/path
// serve on specific host and port
gss --host grundstein.it --port 2323
first release
- fix error if 404.html.gz does not exist, serve 404.html instead.
- update dependencies
- add "--cache no" cli argument to prevent cache-control headers from being sent.
- update dependencies
- use log.server.request instead of formatLog
- use lib.sendStream and lib.response instead of importing those functions directly
- use lib.etags instead of local function
- update dependencies
- @magic/mime-types now supports ply files
update dependencies
update dependencies
- update dependencies
- handler does not error if called without arguments, uses defaults instead.
- added defaults file and using it everywhere
add proxies = [] to defaults
fix typo
readd path404 argument destructuring
update dependencies
update dependencies
update dependencies
...