Skip to content

Commit

Permalink
[api] Sane configuration params in production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs authored and coolo committed Oct 18, 2013
1 parent b25fe6b commit 8d13446
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/api/config/environments/production.rb
Expand Up @@ -25,6 +25,25 @@

config.cache_store = :dalli_store, 'localhost:11211', {namespace: 'obs-api', compress: true, expires_in: 1.day }

# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true

# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false

# Compress JavaScripts and CSS
config.assets.compress = true

# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false

# Generate digests for assets URLs
config.assets.digest = true

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
end


Expand Down

0 comments on commit 8d13446

Please sign in to comment.