Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true

# Turn off the IP spoofing check. The app runs behind Cloudflare and an internal
# Docker proxy, so the trusted client IP comes from the proxy, not from a
# client-supplied header. With the check on, any request that sends a Client-IP
# header that disagrees with X-Forwarded-For makes ActionDispatch::RemoteIp raise
# IpSpoofAttackError and return a 500 before the request reaches a controller.
config.action_dispatch.ip_spoofing_check = false

# Skip http-to-https redirect for the default health check endpoint.
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }

Expand Down
Loading