Skip to content

Commit

Permalink
Restore configuration for x_sendfile_header
Browse files Browse the repository at this point in the history
This fell out of the default configuration template. It's unclear if that ommission was intentional: rails/rails#54401
  • Loading branch information
jcoyne committed Jan 29, 2025
1 parent 67125cd commit c5c31ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@
#
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }

# Specifies the header that your server uses for sending files.
config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
end

0 comments on commit c5c31ce

Please sign in to comment.