Created
April 23, 2023 22:12
-
-
Save patricksimpson/a5fc0d125b3b3a9ef13fb63f01106974 to your computer and use it in GitHub Desktop.
production.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
missing
}
at the end of the line 11