Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update production.rb template to provide example to exclude healthcheck from force_ssl redirect #51680

Merged
merged 1 commit into from Apr 28, 2024

Commits on Apr 28, 2024

  1. Update production.rb template to provide example to exclude healthche…

    …ck from force_ssl redirect
    
    Instructions for disabling specific endpoints from http-to-https redirects live in the SSL middleware:
    
    https://github.com/rails/rails/blob/fc4407eed00ed172e92798ae2a5d415b1134c26b/actionpack/lib/action_dispatch/middleware/ssl.rb#L20
    
    The change follows the path-matching pattern already present for ignoring the healthcheck endpoint for config.host_authorization:
    
    https://github.com/rails/rails/blob/fc4407eed00ed172e92798ae2a5d415b1134c26b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt#L110
    bensheldon committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    20ef7c3 View commit details
    Browse the repository at this point in the history