!1 Merge back to master

Merge pull request !1 from dev branch
This commit is contained in:
hekk 2018-05-27 21:32:55 +08:00
parent 30c963a5f0
commit 61a1c93f0f
89 changed files with 15859 additions and 2 deletions

77
config.json Normal file
View file

@ -0,0 +1,77 @@
{
"AppName": "qs",
"AdminId": "admin",
"AdminPwd": "quicksh@re",
"SecretKey": "qs",
"Production": true,
"HostName": "",
"Port": 8888,
"MaxUpBytesPerSec": 2000000,
"MaxDownBytesPerSec": 1000000,
"MaxRangeLength": 10485760,
"Timeout": 7200000,
"ReadTimeout": 5000,
"WriteTimeout": 7200000,
"IdleTimeout": 10000,
"WorkerPoolSize": 16,
"TaskQueueSize": 16,
"QueueSize": 16,
"ParseFormBufSize": 5000000,
"MaxHeaderBytes": 1024,
"DownLimit": -1,
"MaxShares": 16384,
"LocalFileLimit": -1,
"CookieDomain": "",
"CookieHttpOnly": false,
"CookieMaxAge": 604800,
"CookiePath": "/",
"CookieSecure": false,
"KeyAdminId": "adminid",
"KeyAdminPwd": "adminpwd",
"KeyToken": "token",
"KeyFileName": "fname",
"KeyFileSize": "size",
"KeyShareId": "shareid",
"KeyStart": "start",
"KeyLen": "len",
"KeyChunk": "chunk",
"KeyAct": "act",
"KeyExpires": "expires",
"KeyDownLimit": "downlimit",
"ActStartUpload": "startupload",
"ActUpload": "upload",
"ActFinishUpload": "finishupload",
"ActLogin": "login",
"ActLogout": "logout",
"ActShadowId": "shadowid",
"ActPublishId": "publishid",
"ActSetDownLimit": "setdownlimit",
"ActAddLocalFiles": "addlocalfiles",
"AllUsers": "addlocalfiles",
"OpIdIpVisit": 0,
"OpIdUpload": 1,
"OpIdDownload": 2,
"OpIdLogin": 3,
"OpIdGetFInfo": 4,
"OpIdDelFInfo": 5,
"OpIdOpFInfo": 6,
"PathLocal": "files",
"PathLogin": "/login",
"PathDownloadLogin": "/download-login",
"PathDownload": "/download",
"PathUpload": "/upload",
"PathStartUpload": "/startupload",
"PathFinishUpload": "/finishupload",
"PathFileInfo": "/fileinfo",
"PathClient": "/",
"LimiterCap": 256,
"LimiterTtl": 3600,
"LimiterCyc": 1,
"BucketCap": 10,
"SpecialCapsStr": {
"0": 30,
"1": 10,
"2": 10,
"3": 1
}
}