v0.3.0-unstable5

This commit is contained in:
Yann Stepienik 2023-04-30 21:21:04 +01:00
parent b84ee3e61c
commit 229a14d4a2
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.3.0-unstable4",
"version": "0.3.0-unstable5",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -229,7 +229,7 @@ func StartServer() {
},
))
srapi.Use(utils.MiddlewareTimeout(20 * time.Second))
srapi.Use(utils.BlockPostWithoutReferer)
// srapi.Use(utils.BlockPostWithoutReferer)
srapi.Use(proxy.BotDetectionMiddleware)
srapi.Use(httprate.Limit(60, 1*time.Minute,
httprate.WithKeyFuncs(httprate.KeyByIP),