2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-03-10 19:21:56 -05:00
|
|
|
Discourse::Application.configure do
|
|
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
|
2014-02-17 10:44:28 -06:00
|
|
|
config.eager_load = true
|
2013-09-10 01:22:58 -05:00
|
|
|
|
2013-03-10 19:21:56 -05:00
|
|
|
# Code is not reloaded between requests
|
|
|
|
config.cache_classes = true
|
|
|
|
|
2013-09-03 18:39:16 -05:00
|
|
|
config.log_level = :info
|
|
|
|
|
2013-03-10 19:21:56 -05:00
|
|
|
# Full error reports are disabled and caching is turned on
|
|
|
|
config.consider_all_requests_local = false
|
|
|
|
config.action_controller.perform_caching = true
|
|
|
|
|
|
|
|
# in profile mode we serve static assets
|
2017-10-27 11:32:23 -05:00
|
|
|
config.public_file_server.enabled = true
|
2013-03-10 19:21:56 -05:00
|
|
|
|
|
|
|
# Compress JavaScripts and CSS
|
|
|
|
config.assets.compress = true
|
|
|
|
|
|
|
|
# stuff should be pre-compiled, allow compilation to make life easier
|
2013-11-04 21:12:26 -06:00
|
|
|
config.assets.compile = true
|
2013-03-10 19:21:56 -05:00
|
|
|
|
|
|
|
# Generate digests for assets URLs
|
|
|
|
config.assets.digest = true
|
|
|
|
|
|
|
|
# Specifies the header that your server uses for sending files
|
|
|
|
config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for nginx
|
|
|
|
|
2021-10-05 05:18:06 -05:00
|
|
|
# we recommend you use mailhog https://github.com/mailhog/MailHog
|
2013-08-18 20:33:38 -05:00
|
|
|
config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
|
2013-03-10 19:21:56 -05:00
|
|
|
|
|
|
|
# Send deprecation notices to registered listeners
|
|
|
|
config.active_support.deprecation = :notify
|
|
|
|
|
2013-04-11 01:24:08 -05:00
|
|
|
# allows users to use mini profiler
|
2014-07-16 17:34:30 -05:00
|
|
|
config.load_mini_profiler = false
|
2013-03-10 19:21:56 -05:00
|
|
|
|
2014-11-10 17:28:17 -06:00
|
|
|
# we don't need full logster support, but need to keep it working
|
|
|
|
config.after_initialize { Logster.logger = Rails.logger }
|
|
|
|
|
2013-04-11 01:24:08 -05:00
|
|
|
# for profiling with perftools
|
|
|
|
# config.middleware.use ::Rack::PerftoolsProfiler, default_printer: 'gif'
|
2013-03-10 19:21:56 -05:00
|
|
|
end
|