feat: strict ratelimit

This commit is contained in:
httpjamesm 2022-12-28 00:00:17 -05:00
parent 076f1387f0
commit 8b46beb1dd
2 changed files with 46 additions and 0 deletions

View file

@ -14,7 +14,9 @@ func main() {
r.LoadHTMLGlob("templates/*")
r.Static("/static", "./public")
r.Use(gin.Recovery())
r.Use(middleware.OptionsMiddleware())
r.Use(middleware.Ratelimit())
r.GET("/robots.txt", func(c *gin.Context) {
c.String(200, "User-agent: *\nDisallow: /")