Make the best HTTP File Server. Better UI, upload support, apple&android install package qrcode generate.
Binary can be download from github releases
If using go1.5, ensure you set GO15VENDOREXPERIMENT=1
Upload size now limited to 1G
--upload
)download
and qrcode
in small screen/-/info/some.(apk|ipa)
to get detail infogo get -v github.com/codeskyblue/gohttpserver
cd $GOPATH/src/github.com/codeskyblue/gohttpserver
go build && ./gohttpserver
Listen port 8000 on all interface, and enable upload
./gohttpserver -r ./ --addr :8000 --upload
Support update access rule if there is a file named .ghs.yml
under directory. .ghs.yml
example
---
upload: false
For example, if there is such file under directory foo
, directory foo
can not be uploaded, while bar
can.
root -
|-- foo
| |-- .ghs.yml
| `-- world.txt
`-- bar
`-- hello.txt
Use config file. specfied with --conf
, see example config.yml. Note that command line option can overwrite conf in config.yml
This is used for server which not https enabled. default use https://plistproxy.herokuapp.com/plist
./gohttpserver --plistproxy=https://someproxyhost.com/
Proxy web site should have ability
$ http POST https://proxyhost.com/plist < app.plist
{
"key": "18f99211"
}
$ http GET https://proxyhost.com/plist/18f99211
# show the app.plist content
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
The search algorithm follow the search engine google. keywords are seperated with space, words with prefix -
will be excluded.
hello world
means must contains hello
and world
hello -world
means must contains hello
but not contains world
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.
go-bindata-assetfs -tags bindata res/...
go build -tags bindata
That's all. ^_^
The first version is https://github.com/codeskyblue/gohttp
This project is under license MIT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。