diff --git a/config/environments/production.rb b/config/environments/production.rb index b6dac5f..7d69d1d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -47,7 +47,9 @@ config.action_cable.allowed_request_origins = [ production_hosts ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - config.force_ssl = true + unless ENV["DISABLE_SSL"] + config.force_ssl = true + end # Include generic and useful information about system operation, but avoid logging too much # information to avoid inadvertent exposure of personally identifiable information (PII).