Simple http server with idle tracking. It can serve local files and contents of zip archives also.
$ Usage of http-server:
-d string
the directory of files to host
-header value
add header in 'name: value' format
-p string
port to serve on (default "8100")
-t uint
duration before shutdown while inactive (0 – disable)
Application supports multiple served locations. Configuration is loaded from all yaml files placed in http-server
subdirectory of XDG_DATA_DIRS
or XDG_CONFIG_HOME
directories.
NOTE: If root directory is specified with
-d
command line argument then server doesn't load its configuration from files.
locations:
- path: /tasks/
root: /var/www/tasks
- path: /notes/
root: /var/notes.zip