Merge pull request #2018 from basecamp/ssl-config
Allow configuring SSL in production with ENV vars
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user