2016-07-28 15:24:41 +08:00
2016-07-27 19:31:51 +08:00
2016-07-28 15:24:41 +08:00
2016-07-27 16:26:18 +08:00
2016-07-27 10:50:18 +08:00
2016-07-27 19:31:51 +08:00
2016-07-27 14:10:03 +08:00
2016-07-26 14:06:01 +08:00
2016-07-28 15:24:41 +08:00
2016-07-21 16:41:10 +08:00
2016-07-28 15:24:41 +08:00
2016-07-28 08:28:46 +08:00
2016-07-28 15:24:41 +08:00
2016-07-28 15:24:41 +08:00
2016-07-27 16:26:18 +08:00
2016-07-28 15:24:41 +08:00
2016-07-28 15:24:41 +08:00

gohttpserver

Make the best HTTP File Server. Rewrite from https://github.com/codeskyblue/gohttp with golang+vue

Notes

If using go1.5, ensure you set GO15VENDOREXPERIMENT=1

Features

  1. Support QRCode code generate
  2. Breadcrumb path quick change
  3. All assets package to Standalone binary
  4. Different file type different icon
  5. Support show or hide hidden files
  6. Upload support(processing ...)
  7. README.md preview
  8. Code file preview
  9. HTTP Basic Auth
  10. Partial reload pages when directory change
  11. When only one dir under dir, path will combine two together
  12. Directory zip download
  13. Apple ipa auto generate .plist file, qrcode can be recognized by iphone (Require https)
  14. Plist proxy
  15. Download count statistics
  16. CORS enabled
  17. Offline download
  18. Edit file support
  19. Global file search
  20. Hidden work download and qrcode in small screen
  21. Theme select support
  22. OK to working behide Nginx
  23. .htaccess support
  24. Calculate md5sum and sha
  25. Folder upload
  26. Support sort by size or modified time

Installation

go get -v github.com/codeskyblue/gohttpserver

Usage

Listen port 8000 on all interface, and enable upload

./gohttpserver --addr :8000 --upload

Upload with CURL

For example, upload a file named foo.txt to directory somedir

PS: max upload size limited to 1G (hard coded)

$ curl -F file=@foo.txt localhost:8000/somedir

FAQ

Developer Guide

Depdencies are managed by godep

go get -v github.com/tools/godep
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...

Theme are all defined in res/themes directory. Now only two, black and green.

How to build single binary release

go-bindata-assetfs -tags bindata res/...
go build -tags bindata

That's all. ^_^

Reference Web sites

LICENSE

This project is under license MIT

Description
The best HTTP Static File Server, write with golang+vue
Readme 3.8 MiB
Languages
JavaScript 53.5%
Go 21.5%
CSS 13.9%
HTML 8.6%
Python 1.3%
Other 1.2%