serve static files

fnordomat e376f9ece1 turn off logging below severity "error" by default 4 anni fa
src e376f9ece1 turn off logging below severity "error" by default 4 anni fa
.gitignore d3400afb24 Initial commit 4 anni fa
Cargo.toml 1350f1808f New feature: watch for file changes + live reload 4 anni fa
LICENSE d3400afb24 Initial commit 4 anni fa
README.md e376f9ece1 turn off logging below severity "error" by default 4 anni fa

README.md

minimal webserver

Serves static files from memory. Reloads files when they change. Nothing else. Only listens on 127.0.0.1:8080, intended to be used behind a reverse proxy.

Features

  • Serve static files from a directory
  • Watch filesystem for changes (files added, modified or deleted)

Notes

  • The rust async ecosystem is in a constant state of flux. Latest version of hyper uses outdated version of tokio. I'll have to update the dependencies and port the code regularly.

Future work

  • More in-depth security analysis
  • It should be possible to change the configuration (logging, ...) at runtime