static-server

command module
v0.0.0-...-e212fb1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

README

static-server

License
Maintainability
Release Last commit
Funding

A golang based file server with default logrus based logging.

Available commands

NAME:
   static-server - A http static file server

USAGE:
   static-server run [command options] [arguments...]

OPTIONS:
   --folder value, -f value           Location of folder from where files will be served[required] [$FILE_FOLDER]
   --port value, -p value             http port, default is 9595 (default: 9595)
   --log-format value                 log format, json or text (default: "json") [$LOG_FORMAT]
   --log-file value, -l value         Name of the log file, default goes to stderr [$LOG_FILE]
   --sub-url value                    Alternate url path that does not match the filesystem [$SUB_URL]
   --static-folder value, --sf value  The static files will only be served from this static folder
                                          and expected to be under the base folder. The url path should
                                          also match the filesystem. Any other path will
                                          be redirected to the index.html (default: "/static") [$STATIC_FOLDER]   
   --cache-duration value, -d value  how long the static assets will be cached given in months (default: 11)
   

Misc badges

GitHub repo size GitHub code size in bytes Lines of Code
Commits Branches Tags
Issues Open Issues Closed Issues
Total PRS Open PRS Closed PRS Merged PRS

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