-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ron
33 lines (25 loc) · 1.13 KB
/
config.ron
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
(
// max bytes of a single upload
// NOTE: be sure to update `client_max_body_size` in your nginx config
upload_limit_bytes: 300000000,
// maximum timeout between initializing an upload and uploading bytes
// NOTE: when `proxy_request_buffering on` this needs to be large enough to
// accommodate the timeout caused by nginx saving the entire request
// to disk before proxying to the app server.
upload_timeout_secs: 500,
// default lifespan of an upload in seconds
upload_lifespan_secs_default: 86400, // 1 day
// max limit of uploaded bytes
max_combined_upload_bytes: 5000000000,
// maximum timeout between initializing a download and downloading bytes
download_timeout_secs: 500,
// default maximum download count for uploaded items
// download_limit_default: Some(5),
// interval between cleanup of expired items (upload, init_upload, init_download)
expired_cleanup_interval_secs: 120,
// Absolute path of upload directory
// or relative path from the running directory
upload_directory: "uploads",
host: "0.0.0.0",
port: 3300,
)