2
2
3
3
[ ![ build status] ( https://travis-ci.com/jackhftang/tusc.svg?branch=master )] ( https://travis-ci.org/jackhftang/tusc )
4
4
5
- A single binary for both server and client of [ tus resumable upload protocol] ( https://tus.io ) .
5
+ TUS ** C ** ommand line (tusc) is a small static binary for both server and client of [ tus resumable upload protocol] ( https://tus.io ) .
6
6
7
- This is a wrapper of [ tusd ] ( https://github.com/tus/tusd ) with nginx-like file listing page (or index page) is added .
8
- Features like S3, GCS, Prometheus, Hooks are removed from tusd, in favor of smaller binary size (< 5 MB after upx-ed rather than > 30MB raw).
9
- This is a command line implementation this library [ go-tusd ] ( https://github.com/eventials/go-tus ) .
7
+ Personally, I need tusc for uploading files in a CI process and a simple UI for downloading (like nginx autoindex) .
8
+ The chucked and resumable feature make it possible to bypass some payload size limitation imposed by proxy.
9
+ Also, small size of binary make it convenient to be included in docker image.
10
10
11
11
## Quick Start
12
12
@@ -33,8 +33,12 @@ $ tusc client http://127.0.0.1:8080/files/ text.txt -r # resumable
33
33
34
34
And then visit to [ file listing page] ( http://127.0.0.1:8080 )
35
35
36
- ### Server Options
36
+ ### Server
37
37
38
+ TUSC is a wrapper of [ tusd] ( https://github.com/tus/tusd ) with and addition of a listing page.
39
+ Features like S3, GCS, Prometheus, Hooks are removed from tusd, in favor of smaller binary size.
40
+
41
+ #### Options
38
42
39
43
```
40
44
$ tusc s --help
@@ -58,7 +62,11 @@ Options:
58
62
--behind-proxy Respect X-Forwarded-* and similar headers which may be set by proxies [default: false]
59
63
```
60
64
61
- ### Client Options
65
+ ### Client
66
+
67
+ TUSC is a command line implementation of this excellent library [ go-tusd] ( https://github.com/eventials/go-tus ) .
68
+
69
+ #### Options
62
70
63
71
```
64
72
$ tusc c --help
@@ -74,3 +82,6 @@ Options:
74
82
--chuck-size BYTE Size of chucks of file [default: 2097152]
75
83
--override-patch-method Sending a POST request instead of PATCH [default: false]
76
84
```
85
+
86
+
87
+
0 commit comments