Skip to content

bwks/webdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebDir

WebDir is a super simple web server that serves a directory tree of files.

It is intended to be used test and lab environments. It's not recommended for production environments.

Download

Downloads are available from the Github releases page

Download the latest release with curl

curl -o webdir https://github.com/bwks/webdir/releases/latest/download/webdir-linux-amd64

Prepare

Set the executable permission

chmod +x webdir

Usage

Usage: ./webdir [OPTIONS] <DIR>

Arguments:
  <DIR>  Directory to serve

Options:
  -4, --ipv4 <IPV4>            IP address to listen on [default: 127.0.0.1]
  -p, --port <PORT>            Port to listen on [default: 8080]
  -l, --log-level <LOG_LEVEL>  Log level (error, warn, info, debug, trace) [default: info]
  -h, --help                   Print help
  -V, --version                Print version
webdir /path/to/directory

2024-09-27T01:55:15.877504Z  INFO webdir: Serving directory: "/path/to/directory"
2024-09-27T01:55:15.877545Z  INFO webdir: Listening on http://127.0.0.1:8080

Docker

Image Build

docker image build -t webdir .

Run Container

docker container run -d -it -p 8080:8080 -v ./tmp/ztp:/opt/ztp webdir

About

Simple application to server a directory over http

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors