Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patricksimpson/a5fc0d125b3b3a9ef13fb63f01106974 to your computer and use it in GitHub Desktop.
Save patricksimpson/a5fc0d125b3b3a9ef13fb63f01106974 to your computer and use it in GitHub Desktop.
production.rb
config.assume_ssl = true
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
...
# based on https://github.com/Purple-Devs/health_check/issues/25#issuecomment-432819017
config.ssl_options = { redirect: { exclude: ->(request) { request.path == '/up' } } }
# and/or
config.host_authorization = { exclude: ->(request) { request.path == '/up' }
@guillaumecabanel
Copy link

missing } at the end of the line 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment