Browse Source

Use assume ssl setting (#2878)

pull/2868/head^2 v0.4.91
Rachael Booth 1 month ago committed by GitHub
parent
commit
e1bbbea742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      config/environments/production.rb
  2. 4
      config/environments/review.rb
  3. 4
      config/environments/staging.rb

2
config/environments/production.rb

@ -35,7 +35,7 @@ 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 = true
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

4
config/environments/review.rb

@ -39,6 +39,10 @@ Rails.application.configure do
# config.action_cable.url = 'wss://example.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
# 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
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

4
config/environments/staging.rb

@ -39,6 +39,10 @@ Rails.application.configure do
# config.action_cable.url = 'wss://example.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
# 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
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

Loading…
Cancel
Save