214
|
1 require "active_support/core_ext/integer/time"
|
|
2
|
0
|
3 Rails.application.configure do
|
|
4 # Settings specified here will take precedence over those in config/application.rb.
|
|
5
|
|
6 # Code is not reloaded between requests.
|
254
|
7 config.enable_reloading = false
|
0
|
8
|
|
9 # Eager load code on boot. This eager loads most of Rails and
|
|
10 # your application in memory, allowing both threaded web servers
|
|
11 # and those relying on copy on write to perform better.
|
|
12 # Rake tasks automatically ignore this option for performance.
|
|
13 config.eager_load = true
|
|
14
|
|
15 # Full error reports are disabled and caching is turned on.
|
254
|
16 config.consider_all_requests_local = false
|
0
|
17 config.action_controller.perform_caching = true
|
|
18
|
254
|
19 # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
|
|
20 # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
|
185
|
21 # config.require_master_key = true
|
|
22
|
254
|
23 # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
|
|
24 # config.public_file_server.enabled = false
|
72
|
25
|
|
26 # Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
223
|
27 # config.asset_host = "http://assets.example.com"
|
0
|
28
|
|
29 # Specifies the header that your server uses for sending files.
|
223
|
30 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
|
31 # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
72
|
32
|
254
|
33 # Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
|
34 # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
|
|
35 # config.assume_ssl = true
|
|
36
|
0
|
37 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
254
|
38 config.force_ssl = true
|
0
|
39
|
254
|
40 # Skip http-to-https redirect for the default health check endpoint.
|
|
41 # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
|
|
42
|
|
43 # Log to STDOUT by default
|
|
44 config.logger = ActiveSupport::Logger.new(STDOUT)
|
|
45 .tap { |logger| logger.formatter = ::Logger::Formatter.new }
|
|
46 .then { |logger| ActiveSupport::TaggedLogging.new(logger) }
|
0
|
47
|
|
48 # Prepend all log lines with the following tags.
|
214
|
49 config.log_tags = [ :request_id ]
|
0
|
50
|
254
|
51 # "info" includes generic and useful information about system operation, but avoids logging too much
|
|
52 # information to avoid inadvertent exposure of personally identifiable information (PII). If you
|
|
53 # want to log everything, set the level to "debug".
|
|
54 config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
|
55
|
0
|
56 # Use a different cache store in production.
|
|
57 # config.cache_store = :mem_cache_store
|
|
58
|
|
59 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
60 # the I18n.default_locale when a translation cannot be found).
|
|
61 config.i18n.fallbacks = true
|
|
62
|
223
|
63 # Don't log any deprecations.
|
|
64 config.active_support.report_deprecations = false
|
214
|
65
|
254
|
66 # Enable DNS rebinding protection and other `Host` header attacks.
|
|
67 # config.hosts = [
|
|
68 # "example.com", # Allow requests from example.com
|
|
69 # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
|
70 # ]
|
|
71 # Skip DNS rebinding protection for the default health check endpoint.
|
|
72 # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
0
|
73 end
|