Skip to content

shebaw/gost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gost Static HTTP File Server

A static HTTP file server that can serve files specified on stdin. A fork of https://github.com/vwochnik/gost

Install

$ go get github.com/shebaw/gost

Usage

Serve the current directory on port 8080:

$ gost .
Static file server running at localhost:8080. Ctrl+C to quit.

Server your home directory on port 8888:

gost -port 8888 ~/
Static file server running at localhost:8888. Ctrl+C to quit.

Server the top 20 recent files in current directory:

ls -c | head -20 | gost

See the help:

$ gost -h
Usage of gost: [-host HOST] [-port PORT] [DIRECTORY]

Serves the directory if specified or a list of files specified from stdin if not.

  -cors
        Elable cross-origin resource sharing
  -host string
        Host to listen (default "localhost")
  -log string
        Optional log file
  -no-cache
        Disable caching
  -port int
        Port to listen (default 8080)
  -quiet
        Quiet mode

Copyright

Copyright (c) 2016 Vincent Wochnik.

License: MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages