This commit is contained in:
Ronald Claveau 2024-05-17 14:03:37 +00:00 committed by GitHub
commit 9738e904f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,6 +43,7 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.ssl_options = {
hsts: { preload: ENV['HSTS_PRELOAD'] == 'true' },
redirect: {
exclude: ->(request) { request.path.start_with?('/health') || request.headers['Host'].end_with?('.onion') || request.headers['Host'].end_with?('.i2p') },
},