Merge pull request #2018 from basecamp/ssl-config

Allow configuring SSL in production with ENV vars
This commit is contained in:
Lewis Buckley
2025-12-09 00:51:08 -08:00
committed by GitHub
+2 -2
View File
@@ -54,10 +54,10 @@ Rails.application.configure do
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
config.assume_ssl = true
config.assume_ssl = ENV.fetch("ASSUME_SSL", "true") == "true"
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.force_ssl = ENV.fetch("FORCE_SSL", "true") == "true"
# Log to STDOUT by default
config.logger = ActiveSupport::Logger.new(STDOUT)