https://github.com/zalari/tus-server
Nodejs-based server, that aims to implement the tus.io upload protocol using standard nodejs frameworks.
https://github.com/zalari/tus-server
Last synced: 12 months ago
JSON representation
Nodejs-based server, that aims to implement the tus.io upload protocol using standard nodejs frameworks.
- Host: GitHub
- URL: https://github.com/zalari/tus-server
- Owner: zalari
- License: other
- Created: 2014-07-16T15:45:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T16:20:50.000Z (almost 12 years ago)
- Last Synced: 2025-06-01T02:02:24.418Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tus-server
[TUS Protocol 0.2.1](http://www.tus.io/protocols/resumable-upload.html) Server Implementation in nodejs, using express
Right now it is a heavy work in progress and it does not claim to be compatible to the tus.io protocol. But stay tuned!
## Configuration
edit config.json
```js
{
"port":5000,
"prefixPath":"/upload/", //prefix for URL, where the service is waiting
"fileUploadPath":"files", //path to dir, where files are stored
"serverString":"tus-server", //Server-Agent :)
"logDir": "logs", //Winston-Options...
"logRotateSize": 10485760,
"logLevel": "info",
"host":"127.0.0.1" //Address, that the server should bind to
}
```
- Allowed [log levels](https://github.com/flatiron/winston#using-logging-levels): debug, info, warn, error
- LogRotateSize: 10MB default
## Install
```
npm install
```
## Demo
```
node app.js
```
## Usage
See app.js for a simple example and for the usage of the various events.
##Thanks
Many thank go out for (https://github.com/vayam) with his nodejs implementation
(https://github.com/vayam/brewtus), that this implementation is based on.
## License
[MIT License](LICENSE.md).