Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Revert "Disable limited exception pages in production"
Browse files Browse the repository at this point in the history
This reverts commit d012493.
  • Loading branch information
jamiecobbett committed Jan 21, 2013
1 parent 6edd9cb commit ca9b009
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions config/environments/production.rb
Expand Up @@ -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
Expand Down

0 comments on commit ca9b009

Please sign in to comment.