main
  1# frozen_string_literal: true
  2
  3Rails.application.configure do
  4  # Settings specified here will take precedence over those in
  5  # config/application.rb
  6  config.webpacker.check_yarn_integrity = false
  7
  8  # Code is not reloaded between requests.
  9  config.cache_classes = true
 10
 11  # Eager load code on boot. This eager loads most of Rails and
 12  # your application in memory, allowing both threaded web servers
 13  # and those relying on copy on write to perform better.
 14  # Rake tasks automatically ignore this option for performance.
 15  config.eager_load = true
 16
 17  # Full error reports are disabled and caching is turned on.
 18  config.consider_all_requests_local       = false
 19  config.action_controller.perform_caching = true
 20
 21  # Ensures that a master key has been made available in either
 22  # ENV["RAILS_MASTER_KEY"]
 23  # or in config/master.key. This key is used to decrypt credentials
 24  # (and other encrypted files).
 25  # config.require_master_key = true
 26
 27  # Disable serving static files from the `/public` folder by default since
 28  # Apache or NGINX already handles this.
 29  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
 30
 31  # Compress JavaScripts and CSS.
 32  # config.assets.js_compressor = Uglifier.new(harmony: true)
 33  # config.assets.css_compressor = :sass
 34
 35  # Do not fallback to assets pipeline if a precompiled asset is missed.
 36  # config.assets.compile = false
 37
 38  # `config.assets.precompile` and `config.assets.version` have moved to
 39  # config/initializers/assets.rb
 40
 41  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
 42  # config.action_controller.asset_host = 'http://assets.example.com'
 43
 44  # Specifies the header that your server uses for sending files.
 45  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
 46  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
 47
 48  # Store uploaded files on the local file system
 49  # (see config/storage.yml for options)
 50  # config.active_storage.service = :local
 51
 52  # Mount Action Cable outside main process or domain
 53  # config.action_cable.mount_path = nil
 54  # config.action_cable.url = 'wss://example.com/cable'
 55  # config.action_cable.allowed_request_origins =
 56  # [ 'http://example.com', /http:\/\/example.*/ ]
 57
 58  # Force all access to the app over SSL, use Strict-Transport-Security,
 59  # and use secure cookies.
 60  config.force_ssl = true
 61
 62  # Use the lowest log level to ensure availability of diagnostic information
 63  # when problems arise.
 64  config.log_level = :debug
 65
 66  # Prepend all log lines with the following tags.
 67  config.log_tags = [:request_id]
 68
 69  # Use a different cache store in production.
 70  # config.cache_store = :mem_cache_store
 71
 72  # Use a real queuing backend for Active Job
 73  # (and separate queues per environment)
 74  # config.active_job.queue_adapter     = :resque
 75  # config.active_job.queue_name_prefix = "proof_#{Rails.env}"
 76
 77  config.action_mailer.perform_caching = false
 78
 79  # Ignore bad email addresses and do not raise email delivery errors.
 80  # Set this to true and configure the email server for immediate
 81  # delivery to raise delivery errors.
 82  # config.action_mailer.raise_delivery_errors = false
 83
 84  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
 85  # the I18n.default_locale when a translation cannot be found).
 86  config.i18n.fallbacks = true
 87
 88  # Send deprecation notices to registered listeners.
 89  config.active_support.deprecation = :notify
 90
 91  # Use default logging formatter so that PID and timestamp are not suppressed.
 92  config.log_formatter = ::Logger::Formatter.new
 93
 94  # Use a different logger for distributed setups.
 95  # require 'syslog/logger'
 96  # config.logger =
 97  # ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
 98
 99  if ENV["RAILS_LOG_TO_STDOUT"].present?
100    logger           = ActiveSupport::Logger.new(STDOUT)
101    logger.formatter = config.log_formatter
102    config.logger    = ActiveSupport::TaggedLogging.new(logger)
103  end
104
105  # Do not dump schema after migrations.
106  config.active_record.dump_schema_after_migration = false
107end