fix force ssl logic for lb configuration

This commit is contained in:
bruckwubete
2018-08-15 11:45:37 -04:00
parent f0610f363d
commit 66ff9c7a2f
2 changed files with 8 additions and 3 deletions

View File

@ -44,9 +44,6 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = (ENV["ENABLE_SSL"] == "true")
# Force SSL for loadbalancer configurations.
config.force_ssl = true if ENV["LOADBALANCER_ENDPOINT"].present? && ENV["LOADBALANCER_SECRET"].present?
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = :debug