|
4 | 4 | # Settings specified here will take precedence over those in config/application.rb.
|
5 | 5 |
|
6 | 6 | # Code is not reloaded between requests.
|
7 |
| - config.cache_classes = true |
| 7 | + config.enable_reloading = false |
8 | 8 |
|
9 | 9 | # Eager load code on boot. This eager loads most of Rails and
|
10 | 10 | # your application in memory, allowing both threaded web servers
|
|
16 | 16 | config.consider_all_requests_local = false
|
17 | 17 | config.action_controller.perform_caching = true
|
18 | 18 |
|
19 |
| - # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] |
20 |
| - # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). |
| 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). |
21 | 21 | # config.require_master_key = true
|
22 | 22 |
|
23 |
| - # Disable serving static files from the `/public` folder by default since |
24 |
| - # Apache or NGINX already handles this. |
| 23 | + # Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it). |
25 | 24 | config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
26 | 25 |
|
27 |
| - # Compress JavaScripts and CSS. |
28 |
| - # config.assets.js_compressor = :uglifier |
29 |
| - # Compress CSS using a preprocessor. |
30 |
| - # config.assets.css_compressor = :sass |
31 |
| - |
32 |
| - # Do not fallback to assets pipeline if a precompiled asset is missed. |
33 |
| - # config.assets.compile = false |
34 |
| - |
35 | 26 | # Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
36 | 27 | # config.asset_host = "http://assets.example.com"
|
37 | 28 |
|
38 | 29 | # Specifies the header that your server uses for sending files.
|
39 | 30 | # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
40 | 31 | # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
41 | 32 |
|
| 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 | + |
42 | 37 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43 | 38 | # config.force_ssl = true
|
44 | 39 |
|
45 |
| - # Include generic and useful information about system operation, but avoid logging too much |
46 |
| - # information to avoid inadvertent exposure of personally identifiable information (PII). |
47 |
| - config.log_level = ENV.fetch("RAILS_LOG_LEVEL", :info) |
48 |
| - |
49 | 40 | # Prepend all log lines with the following tags.
|
50 | 41 | config.log_tags = [:request_id]
|
51 | 42 |
|
| 43 | + # Info include generic and useful information about system operation, but avoids logging too much |
| 44 | + # information to avoid inadvertent exposure of personally identifiable information (PII). If you |
| 45 | + # want to log everything, set the level to "debug". |
| 46 | + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", :info) |
| 47 | + |
52 | 48 | # Use a different cache store in production.
|
53 | 49 | # config.cache_store = :mem_cache_store
|
54 | 50 |
|
|
66 | 62 | # the I18n.default_locale when a translation cannot be found).
|
67 | 63 | config.i18n.fallbacks = true
|
68 | 64 |
|
69 |
| - # Send deprecation notices to registered listeners. |
70 |
| - config.active_support.deprecation = :notify |
71 |
| - |
72 |
| - # Log disallowed deprecations. |
73 |
| - config.active_support.disallowed_deprecation = :log |
74 |
| - |
75 |
| - # Tell Active Support which deprecation messages to disallow. |
76 |
| - config.active_support.disallowed_deprecation_warnings = [] |
77 |
| - |
78 |
| - # Use default logging formatter so that PID and timestamp are not suppressed. |
79 |
| - config.log_formatter = ::Logger::Formatter.new |
| 65 | + # Don't log any deprecations. |
| 66 | + config.active_support.report_deprecations = false |
80 | 67 |
|
81 |
| - # Use a different logger for distributed setups. |
82 |
| - # require "syslog/logger" |
83 |
| - # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name") |
| 68 | + # Enable DNS rebinding protection and other `Host` header attacks. |
| 69 | + # config.hosts = [ |
| 70 | + # "example.com", # Allow requests from example.com |
| 71 | + # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com` |
| 72 | + # ] |
| 73 | + # Skip DNS rebinding protection for the default health check endpoint. |
| 74 | + # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } |
84 | 75 |
|
85 | 76 | if ENV["RAILS_LOG_TO_STDOUT"].present?
|
86 | 77 | logger = ActiveSupport::Logger.new($stdout)
|
|
0 commit comments