Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

There are many static file servers written in Go (and friends). This one is ours.

License

Notifications You must be signed in to change notification settings

whosonfirst/go-whosonfirst-fileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-whosonfirst-fileserver

There are many static file servers written in Go (and friends). This one is ours.

Important

This package is no longer being maintained. You should use aaronland/go-http-fileserver or something equivalent instead.

Install

You will need to have both Go (specifically version 1.12 or higher because we're using Go modules) and the make programs installed on your computer. Assuming you do just type:

make tools

All of this package's dependencies are bundled with the code in the vendor directory.

Tools

www-fileserver

> ./bin/www-fileserver -h
Usage of ./bin/www-fileserver:
  -cors
    	Enable CORS header on responses
  -cors-allowed-origins string
    	Comma-separated list of CORS allowed origins (default "*")
  -gzip
    	gzip response bodies
  -host string
    	Hostname to listen on (default "localhost")
  -path string
    	Path served as document root. (default "./")
  -port int
    	Port to listen on (default 8080)

To do

  • Support for TLS certificates

See also

About

There are many static file servers written in Go (and friends). This one is ours.

Resources

License

Stars

Watchers

Forks

Packages

No packages published