Skip to content

Commit f805eb5

Browse files
author
Jack Tang
committed
UPT: add upx in build + improve listing page style
1 parent 48f011c commit f805eb5

File tree

5 files changed

+207
-193
lines changed

5 files changed

+207
-193
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ all: clean get
44
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s" -o tusc_darwin_amd64 cmd/tusc.go
55
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o tusc_linux_amd64 cmd/tusc.go
66
GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o tusc_linux_arm cmd/tusc.go
7+
upx tusc*
78

89
.PHONY: get
910
get:

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
A single binary for both server and client of [tus resumable upload protocol](https://tus.io).
66

7-
This is a trim-down version of [tusd](https://github.com/tus/tusd) in favor of smaller binary size (< 10 MB rather than > 30MB).
8-
S3, GCS, Prometheus, Hooks are not include (a.k.a. plain old http server with file storage).
9-
7+
This is a wrapper of [tusd](https://github.com/tus/tusd) with a nginx-like file listing page (or index page).
8+
S3, GCS, Prometheus, Hooks are removed, in favor of smaller binary size (upx-ed < 5 MB rather than > 30MB).
9+
1010
For client, this is a command line implementation this library [go-tusd](https://github.com/eventials/go-tus).
1111

1212
### Quick Start
@@ -25,6 +25,8 @@ $ tusc client http://127.0.0.1:8080/files/ text.txt # not resumable
2525
$ tusc client http://127.0.0.1:8080/files/ text.txt -r # resumable
2626
```
2727

28+
And then visit to [file listing page](http://127.0.0.1:8080)
29+
2830
## Server Options
2931

3032

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require (
66
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40
77
github.com/davecgh/go-spew v1.1.1 // indirect
88
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
9+
github.com/dustin/go-humanize v1.0.0
910
github.com/eventials/go-tus v0.0.0-20190617130015-9db47421f6a0
1011
github.com/golang/mock v1.3.1 // indirect
1112
github.com/golang/protobuf v1.3.2 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
55
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
66
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=
77
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
8+
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
9+
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
810
github.com/eventials/go-tus v0.0.0-20190617130015-9db47421f6a0 h1:iJijjXGuAFvYA8rTypGm7xMcl3QKlhuNn+nn5dNGA/k=
911
github.com/eventials/go-tus v0.0.0-20190617130015-9db47421f6a0/go.mod h1:CfBfpEHiX55nX/EXkG3bOskUPrYe51D/guFiBupNSik=
1012
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=

0 commit comments

Comments
 (0)