split utils, added manual tests

This commit is contained in:
2018-11-25 11:16:02 +02:00
parent 74ee5edd7e
commit 8452a7034e
10 changed files with 294 additions and 116 deletions

28
test/test-config.json Normal file
View File

@@ -0,0 +1,28 @@
{
"__comment": [
"workers: number of parallel processes. single long upload reserves a process.",
"timeout: seconds for process to last. single long upload cant take longer than this.",
"uid: Docker runs as root, this changes owner of written files. -1 to skip chowning",
"max_zip_size: dont allow zip downloads if folder size exceeds this many megabytes",
"app_secret_key: used to encrypt session cookie"
],
"public_url": "http://localhost:8080",
"site_name": "testsite",
"notifier": "",
"workers": 3,
"timeout": 3600,
"uid": 1000,
"gid": -1,
"timezone": "Europe/Helsinki",
"__do_not_edit": "most likely you will not change anything after this line",
"data_folder": "data",
"version_folder": "_version",
"shares_file": "data/shares.json",
"log_file": "data/flees.log",
"zip_folder": "data/.zip",
"max_zip_size": 1000,
"date_format": "%Y-%m-%d %H:%M",
"app_secret_key": "Cz2dw5NiRt3PSMFBSLTAJJi7U2CdW7iPQqEeOaU6",
"debug": true
}