forked from fkalis/bash-onedrive-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
onedrive.cfg
28 lines (22 loc) · 942 Bytes
/
onedrive.cfg
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
export refresh_token_file="${script_base_folder}/.refresh_token"
# Authentication config
export api_client_id=""
export api_client_secret=""
# Permission to request on first authorization: One of ["onedrive.readwrite", "onedrive.appfolder"]
export api_permissions="onedrive.readwrite"
# Upload config
# API drive resource folder: One of ["root", "special/approot"]
export api_drive_resource="root"
export api_root_folder="/"
export max_upload_threads=2
export max_simple_upload_size=104857600
# When uploading large files (>100MB) this is the max chunk size in bytes
# According to the official api this should be a multiple of 320 KiB (320 * 1024 bytes)
export max_chunk_size=10158080
# Error handling
# Retry every failed request (Timeout, 5xx) 3 times
export http_retries=3
# Retry every failed chunk upload (!= 200, 201, 202, 204) 3 times
export chunk_retries=3
# Retry every failed file (!= 200, 201) 3 times
export file_retries=3