Skip to content

Commit 0bf516d

Browse files
Update app/controllers/application_controller.rb
Co-authored-by: Javier Julio <JJfutbol@gmail.com>
1 parent a7a80fb commit 0bf516d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/application_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class ApplicationController < ActionController::Base
44
protect_from_forgery with: :exception
55

6-
rate_limit to: 60, within: 1.minute
7-
rate_limit to: 1000, within: 1.day
6+
rate_limit to: 30, within: 1.minute
7+
rate_limit to: 500, within: 1.day
88

99
def route_not_found
1010
render file: Rails.public_path.join("404.html"), status: :not_found, layout: false

0 commit comments

Comments
 (0)