-
Notifications
You must be signed in to change notification settings - Fork 1
/
incoming_cfg.yaml
41 lines (33 loc) · 1.75 KB
/
incoming_cfg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# IP incoming should listen on
IncomingIP: 0.0.0.0
# port incoming should listen on
IncomingPort: 4000
# for uploads to files: where should files be stored until the web app moves /
# deletes them?
# Relative paths are evaluated relative to current working directory
StorageDir: '/var/incoming/uploads'
# a file is split into many chunks which are uploaded in sequence...
UploadChunkSizeKB: 512
# how many send()s may the browser be ahead of receiving acks? If this is i,
# sender will send message (n+i) only after ack for message (n) has been
# received. So this should be greater or equal than 1.
# If it is 1, the upload will certainly proceed slower than it could, because
# each chunk is first acknowledged from the server before the next one is sent.
UploadSendAhead: 4
# how long can an upload be idle before it is automatically cancelled.
# This must be longer than either HandoverTimeoutS and HandoverConfirmTimeoutS.
UploadMaxIdleDurationS: 43200 # 12 hours
# how long may reads and writes to the websocket take before they are timed out?
# this must be smaller than the reconnect attempt interval in the javascript
# library in ws.onclose (which is as of now set to 60 seconds)
WebsocketConnectionTimeoutS: 58
# how long may the 'upload is finished' request to the app backend take before
# the upload is assumed cancelled and the file deleted.
# This must be shorter than UploadMaxIdleDurationS and WebsocketConnectionTimeoutS.
HandoverTimeoutS: 55
# how long after Incoming!! signals a complete upload to app backend should Incoming!!
# assume the upload cancelled and delete the file? (only if upload is configured to
# wait for confirmation from app backend that file has been retrieved)
# This must be shorter than UploadMaxIdleDurationS.
HandoverConfirmTimeoutS: 600