v0.3.0-unstable5
This commit is contained in:
parent
b84ee3e61c
commit
229a14d4a2
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.3.0-unstable4",
|
"version": "0.3.0-unstable5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
@ -229,7 +229,7 @@ func StartServer() {
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
srapi.Use(utils.MiddlewareTimeout(20 * time.Second))
|
srapi.Use(utils.MiddlewareTimeout(20 * time.Second))
|
||||||
srapi.Use(utils.BlockPostWithoutReferer)
|
// srapi.Use(utils.BlockPostWithoutReferer)
|
||||||
srapi.Use(proxy.BotDetectionMiddleware)
|
srapi.Use(proxy.BotDetectionMiddleware)
|
||||||
srapi.Use(httprate.Limit(60, 1*time.Minute,
|
srapi.Use(httprate.Limit(60, 1*time.Minute,
|
||||||
httprate.WithKeyFuncs(httprate.KeyByIP),
|
httprate.WithKeyFuncs(httprate.KeyByIP),
|
||||||
|
|
Loading…
Reference in a new issue