Skip to content

Commit

Permalink
satellite/console: remove analytics rate limit
Browse files Browse the repository at this point in the history
Remove rate limit on plausible pageview route.

Change-Id: If372cbb2c6be7f1287622d06363acff6ad9bc3ae
  • Loading branch information
wilfred-asomanii authored and andriikotko committed Apr 30, 2024
1 parent 86f85a9 commit 30ad064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satellite/console/consoleweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func NewServer(logger *zap.Logger, config Config, service *console.Service, oidc
analyticsController := consoleapi.NewAnalytics(logger, service, server.analytics)

analyticsPath := "/api/v0/analytics"
router.Handle(analyticsPath+"/pageview", server.ipRateLimiter.Limit(http.HandlerFunc(analyticsController.PageViewTriggered))).Methods(http.MethodPost, http.MethodOptions)
router.HandleFunc(analyticsPath+"/pageview", analyticsController.PageViewTriggered).Methods(http.MethodPost, http.MethodOptions)
analyticsRouter := router.PathPrefix(analyticsPath).Subrouter()
analyticsRouter.Use(server.withCORS)
analyticsRouter.Use(server.withAuth)
Expand Down

0 comments on commit 30ad064

Please sign in to comment.