diff --git a/config/environments/production.rb b/config/environments/production.rb index ac0a93e82fa329c19c9c69bf7f0ffc6270f57bb6..405c420495336f444a66b06c72d265102b0722a1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -38,7 +38,8 @@ Diaspora::Application.configure do config.serve_static_assets = false #force ssl in production - config.middleware.insert_before ActionDispatch::Static, "Rack::SSL" + config.middleware.insert_before Rack::Runtime, Rack::SSL + # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com"