Update limit configs and add setup script (#3)

* chore(config): update up/download speed to make full use of bandwidth

* chore(package.json): add setup script for installing dependencies
This commit is contained in:
Hexxa 2018-05-28 09:13:33 -05:00 committed by GitHub
parent 9ddce13cf6
commit 44b6e65926
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View file

@ -6,8 +6,8 @@
"Production": true,
"HostName": "",
"Port": 8888,
"MaxUpBytesPerSec": 2000000,
"MaxDownBytesPerSec": 1000000,
"MaxUpBytesPerSec": 10000000,
"MaxDownBytesPerSec": 10000000,
"MaxRangeLength": 10485760,
"Timeout": 7200000,
"ReadTimeout": 5000,
@ -67,11 +67,11 @@
"LimiterCap": 256,
"LimiterTtl": 3600,
"LimiterCyc": 1,
"BucketCap": 10,
"BucketCap": 100,
"SpecialCapsStr": {
"0": 30,
"1": 10,
"2": 10,
"0": 100,
"1": 100,
"2": 100,
"3": 1
}
}

View file

@ -4,14 +4,15 @@
"description": "A succinct file sharing server.",
"main": "",
"scripts": {
"start": "yarn build-client && go run server.go",
"test": "go test -v ./... && yarn jest --coverage",
"fmt": "go fmt ./...",
"clean": "go clean && rm -r ./dist && rm -r ./public/dist",
"build":
"rm -rf ./dist && rm -rf ./public/dist && yarn build-client && goreleaser --snapshot",
"build-client": "webpack --config ./client/webpack.config.prod.js",
"build-client-dev": "webpack --config ./client/webpack.config.dev.js"
"build-client-dev": "webpack --config ./client/webpack.config.dev.js",
"clean": "go clean && rm -r ./dist && rm -r ./public/dist",
"fmt": "go fmt ./...",
"setup": "yarn && dep ensure",
"start": "yarn build-client && go run server.go",
"test": "go test -v ./... && yarn jest --coverage"
},
"author": "hexxa",
"license": "ISC",