Don't rate-limit PuSH endpoints
This commit is contained in:
		
							parent
							
								
									79075e1303
								
							
						
					
					
						commit
						56b9edd476
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| class Rack::Attack | ||||
|   # Rate limits for the API | ||||
|   throttle('api', limit: 150, period: 5.minutes) do |req| | ||||
|     req.ip if req.path.match(/\A\/api\//) | ||||
|     req.ip if req.path.match(/\A\/api\/v/) | ||||
|   end | ||||
| 
 | ||||
|   self.throttled_response = lambda do |env| | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue