|
23 | 23 | # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead. |
24 | 24 | config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? |
25 | 25 |
|
26 | | -# Compress JavaScripts and CSS. |
| 26 | + # Compress JavaScripts and CSS. |
27 | 27 | config.assets.js_compressor = :terser |
28 | 28 | # Compress CSS using a preprocessor. |
29 | 29 | # config.assets.css_compressor = :sass |
|
53 | 53 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. |
54 | 54 | config.force_ssl = true |
55 | 55 |
|
| 56 | + # Skip http-to-https redirect for the default health check endpoint. |
| 57 | + # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } } |
| 58 | + |
56 | 59 | # Log to STDOUT by default |
57 | 60 | config.logger = ActiveSupport::Logger.new(STDOUT) |
58 | 61 | .tap { |logger| logger.formatter = ::Logger::Formatter.new } |
|
73 | 76 | # config.active_job.queue_adapter = :resque |
74 | 77 | # config.active_job.queue_name_prefix = "thing_production" |
75 | 78 |
|
| 79 | + # Disable caching for Action Mailer templates even if Action Controller |
| 80 | + # caching is enabled. |
76 | 81 | config.action_mailer.perform_caching = false |
77 | 82 |
|
78 | 83 | # Ignore bad email addresses and do not raise email delivery errors. |
|
100 | 105 | # Do not dump schema after migrations. |
101 | 106 | config.active_record.dump_schema_after_migration = false |
102 | 107 |
|
| 108 | + # Only use :id for inspections in production. |
| 109 | + config.active_record.attributes_for_inspect = [ :id ] |
| 110 | + |
103 | 111 | # Enable DNS rebinding protection and other `Host` header attacks. |
104 | 112 | # config.hosts = [ |
105 | 113 | # "example.com", # Allow requests from example.com |
|
0 commit comments