255fcf684d3d8336f5a18251da1537ab282e405c
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
- Support QRCode code generate
- Breadcrumb path quick change
- All assets package to Standalone binary
- Different file type different icon
- Support show or hide hidden files
- Upload support(processing ...)
- README.md preview
- Code file preview
- HTTP Basic Auth
- Partial reload pages when directory change
- When only one dir under dir, path will combine two together
- Directory zip download
- Apple ipa auto generate .plist file, qrcode can be recognized by iphone (Require https)
- Plist proxy
- Download count statistics
- CORS enabled
- Offline download
- Edit file support
- Global file search
- Hidden work
downloadandqrcodein small screen - Theme select support
- OK to working behide Nginx
- .htaccess support
- Calculate md5sum and sha
- Folder upload
- 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
- https://vuejs.org.cn/
- Icon from http://www.easyicon.net/558394-file_explorer_icon.html
- https://github.com/elazarl/go-bindata-assetfs
- Code Highlight https://craig.is/making/rainbows
- Markdown-JS https://github.com/showdownjs/showdown
- https://github.com/sindresorhus/github-markdown-css
- http://www.gorillatoolkit.org/pkg/handlers
LICENSE
This project is under license MIT
Description
Languages
JavaScript
53.5%
Go
21.5%
CSS
13.9%
HTML
8.6%
Python
1.3%
Other
1.2%