Skip to content

Commit d366a99

Browse files
authored
Merge pull request rails#51680 from bensheldon/patch-1
2 parents fc4407e + 20ef7c3 commit d366a99

File tree

1 file changed

+2
-0
lines changed
  • railties/lib/rails/generators/rails/app/templates/config/environments

1 file changed

+2
-0
lines changed

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Rails.application.configure do
5858

5959
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
6060
config.force_ssl = true
61+
# Skip http-to-https redirect for the default health check endpoint.
62+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
6163

6264
# Log to STDOUT by default
6365
config.logger = ActiveSupport::Logger.new(STDOUT)

0 commit comments

Comments
 (0)