The Upload Server Daemon (TUSD) with special webhooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Joshua Rubingh 4e388ab7a3 Fix upstream hostname 4 months ago
..
storage Cleanup. Remove compiled python 11 months ago
README.md Initial commit - split up code 11 months ago
logging.custom.ini Initial commit - split up code 11 months ago
logging.ini Initial commit - split up code 11 months ago
post-create.sh Initial commit - split up code 11 months ago
post-finish Initial commit - split up code 11 months ago
post-finish.py Initial commit - split up code 11 months ago
post-finish.sh Initial commit - split up code 11 months ago
post-receive.sh Initial commit - split up code 11 months ago
post-terminate.sh Initial commit - split up code 11 months ago
pre-create Initial commit - split up code 11 months ago
pre-create.py Initial commit - split up code 11 months ago
pre-create.sh Initial commit - split up code 11 months ago
requirements.txt Initial commit - split up code 11 months ago

README.md

The JSON data of a hook contains the following code:
'''
{
"Upload": {
"ID": "fae477007048c363be15cc0f6757eaf1",
"Size": 243487,
"SizeIsDeferred": false,
"Offset": 243487,
"MetaData": {
"code": "858859",
"filename": "provider_for_google_calendar-68.2.1-tb.xpi",
"filetype": "application/x-xpinstall",
"ip": "127.0.0.1",
"name": "provider_for_google_calendar-68.2.1-tb.xpi",
"relativePath": "null",
"study": "08211acd-f899-41da-a9cf-15a2db78bb03",
"type": "application/x-xpinstall"
},
"IsPartial": false,
"IsFinal": false,
"PartialUploads": null,
"Storage": {
"Path": "/opt/deploy/data_drop-off/upload_data/fae477007048c363be15cc0f6757eaf1",
"Type": "filestore"
}
},
"HTTPRequest": {
"Method": "PATCH",
"URI": "/files/fae477007048c363be15cc0f6757eaf1",
"RemoteAddr": "127.0.0.1:37722",
"Header": {
"Accept": [
"/"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept-Language": [
"en-US,en;q=0.5"
],
"Connection": [
"upgrade"
],
"Content-Length": [
"243487"
],
"Content-Type": [
"application/offset+octet-stream"
],
"Dnt": [
"1"
],
"Origin": [
"http://localhost:8000"
],
"Referer": [
"http://localhost:8000/drop/08211acd-f899-41da-a9cf-15a2db78bb03"
],
"Tus-Resumable": [
"1.0.0"
],
"Upload-Offset": [
"0"
],
"User-Agent": [
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0"
],
"X-Forwarded-For": [
"127.0.0.1"
],
"X-Forwarded-Host": [
"localhost"
],
"X-Forwarded-Proto": [
"http"
],
"X-Real-Ip": [
"127.0.0.1"
]
}
}
}
'''