2016-07-27 23:26:52 +08:00
2016-07-27 19:31:51 +08:00
2016-07-27 14:10:03 +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-27 23:26:52 +08:00
2016-07-27 14:10:03 +08:00
2016-07-21 16:41:10 +08:00
2016-07-27 23:26:52 +08:00
2016-07-27 22:27:13 +08:00
2016-07-26 14:06:01 +08:00
2016-07-26 14:06:01 +08:00
2016-07-27 16:26:18 +08:00
2016-07-26 19:30:59 +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 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. Support modify the index page
  16. Download count statistics
  17. CORS enabled
  18. Offline download
  19. Edit file support
  20. Global file search
  21. Hidden work download and qrcode in small screen
  22. Theme select support
  23. OK to working behide Nginx
  24. .htaccess support
  25. Check md5sum and sha
  26. Folder upload

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%