Skip to content

Commit 907f935

Browse files
committed
bin/rails app:update partially accepted
1 parent 4d99175 commit 907f935

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config/environments/production.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
5050
config.force_ssl = true
5151

52+
# Skip http-to-https redirect for the default health check endpoint.
53+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
54+
5255
# Log to STDOUT by default
5356
config.logger = ActiveSupport::Logger.new(STDOUT)
5457
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
@@ -70,6 +73,8 @@
7073
# config.active_job.queue_adapter = :resque
7174
# config.active_job.queue_name_prefix = "timdex_production"
7275

76+
# Disable caching for Action Mailer templates even if Action Controller
77+
# caching is enabled.
7378
config.action_mailer.perform_caching = false
7479

7580
# Ignore bad email addresses and do not raise email delivery errors.
@@ -96,6 +101,9 @@
96101
# Do not dump schema after migrations.
97102
config.active_record.dump_schema_after_migration = false
98103

104+
# Only use :id for inspections in production.
105+
config.active_record.attributes_for_inspect = [ :id ]
106+
99107
# Enable DNS rebinding protection and other `Host` header attacks.
100108
# config.hosts = [
101109
# "example.com", # Allow requests from example.com

0 commit comments

Comments
 (0)