mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-01 12:45:15 +09:00
docs(rails-security): restrict assume_ssl to an HTTPS-enforcing proxy
This commit is contained in:
1 parent
da713084fc
commit
e2aee760ff
1 file changed
+1
@@ -27,6 +27,7 @@ decisions about which control to reach for, see the Ruby security rules —
|
||||
# config/environments/production.rb
|
||||
Rails.application.configure do
|
||||
config.force_ssl = true
|
||||
# Only use when all requests pass through a proxy that rejects or redirects HTTP.
|
||||
config.assume_ssl = true # behind a proxy that terminates TLS
|
||||
|
||||
# Reject requests with unexpected Host headers.
|
||||
|
||||
Reference in new issue
Block a user