http-server

command module
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 9 Imported by: 0

README

http-server

Simple http server with idle tracking. It can serve local files and contents of zip archives also.

Basic command line usage

$ 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)
  

Configuration

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.

Example
locations:
    - path: /tasks/
      root: /var/www/tasks
    - path: /notes/
      root: /var/notes.zip

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL