Skip to content

Commit

Permalink
Disable IP spoofing check in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Nov 10, 2023
1 parent 0302ac0 commit ef4143a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb


# Code is not reloaded between requests
config.cache_classes = true

Expand All @@ -15,6 +16,9 @@
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx

# Disable random ActionDispatch::RemoteIp::IpSpoofAttackError errors when deployed
config.action_dispatch.ip_spoofing_check = false

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

Expand Down

0 comments on commit ef4143a

Please sign in to comment.