2020-04-11 01:38:15 +00:00
|
|
|
Rails.application.configure do
|
2014-03-23 00:22:25 +00:00
|
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
|
2020-04-11 01:38:15 +00:00
|
|
|
# Load app models at start
|
|
|
|
config.eager_load = true
|
|
|
|
|
2014-03-23 00:22:25 +00:00
|
|
|
# Code is not reloaded between requests
|
|
|
|
config.cache_classes = true
|
2020-04-11 01:38:15 +00:00
|
|
|
config.action_controller.perform_caching = true
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
# Full error reports are disabled and caching is turned on
|
2014-04-01 23:07:21 +00:00
|
|
|
config.consider_all_requests_local = false
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
# Disable Rails's static asset server (Apache or nginx will already do this)
|
2020-04-11 01:38:15 +00:00
|
|
|
config.serve_static_assets = true
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
# Compress JavaScripts and CSS
|
|
|
|
config.assets.compress = true
|
2020-04-11 01:38:15 +00:00
|
|
|
# config.assets.js_compressor = Uglifier.new(harmony: true)
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
# Don't fallback to assets pipeline if a precompiled asset is missed
|
|
|
|
config.assets.compile = true
|
|
|
|
|
|
|
|
# Generate digests for assets URLs
|
|
|
|
config.assets.digest = true
|
|
|
|
|
|
|
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
2020-04-11 22:14:19 +00:00
|
|
|
# Keep this off, causes weird redirection bug
|
2020-04-11 01:38:15 +00:00
|
|
|
config.force_ssl = false
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
# See everything in the log (default is :info)
|
|
|
|
config.log_level = :error
|
|
|
|
|
|
|
|
# Disable delivery errors, bad email addresses will be ignored
|
2020-04-11 01:38:15 +00:00
|
|
|
config.action_mailer.raise_delivery_errors = false
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2020-04-11 01:38:15 +00:00
|
|
|
# Send email
|
|
|
|
config.action_mailer.perform_deliveries = true
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2020-04-11 01:38:15 +00:00
|
|
|
# Do not dump schema after migrations.
|
|
|
|
config.active_record.dump_schema_after_migration = false
|
2020-04-18 05:02:03 +00:00
|
|
|
|
|
|
|
# Specifies the header that your server uses for sending files
|
|
|
|
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
|
|
|
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
2020-11-03 03:26:36 +00:00
|
|
|
|
|
|
|
# Secret key
|
|
|
|
config.require_master_key = false
|
|
|
|
|
2018-04-14 13:02:58 +00:00
|
|
|
end
|