Skip to content
Browse files

Revert "Disable limited exception pages in production"

This reverts commit d012493.
  • Loading branch information...
1 parent 6edd9cb commit ca9b009003fc00f1cc370f54e213b63233029ef9 @jamiecobbett jamiecobbett committed
Showing with 0 additions and 8 deletions.
  1. +0 −8 config/environments/production.rb
8 config/environments/production.rb
@@ -7,14 +7,6 @@
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
- # Disable even limited exception/debug pages in production for two reasons:
- # 1) our backend rails apps get X-Forwarded-For & Client-IP for all requests
- # as 10.x.x.x, which is a trusted proxy. This means they render the
- # limited exception/debug pages.
- # 2) our backend rails apps receive requests from other apps that might
- # appear to be on trusted proxy IPs, so we might render exception/debug
- # page, which could then be exposed in a frontend app to the world.
- config.action_dispatch.show_exceptions = false
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false

0 comments on commit ca9b009

Please sign in to comment.
Something went wrong with that request. Please try again.