{"action":"closed","issue":{"url":"https://api.github.com/repos/collingreen/djeroku/issues/8","labels_url":"https://api.github.com/repos/collingreen/djeroku/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/collingreen/djeroku/issues/8/comments","events_url":"https://api.github.com/repos/collingreen/djeroku/issues/8/events","html_url":"https://github.com/collingreen/djeroku/issues/8","id":67943501,"number":8,"title":"Include 'always ssl' middleware in production config","user":{"login":"collingreen","id":5257160,"avatar_url":"https://avatars.githubusercontent.com/u/5257160?v=3","gravatar_id":"","url":"https://api.github.com/users/collingreen","html_url":"https://github.com/collingreen","followers_url":"https://api.github.com/users/collingreen/followers","following_url":"https://api.github.com/users/collingreen/following{/other_user}","gists_url":"https://api.github.com/users/collingreen/gists{/gist_id}","starred_url":"https://api.github.com/users/collingreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collingreen/subscriptions","organizations_url":"https://api.github.com/users/collingreen/orgs","repos_url":"https://api.github.com/users/collingreen/repos","events_url":"https://api.github.com/users/collingreen/events{/privacy}","received_events_url":"https://api.github.com/users/collingreen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-12T18:51:22Z","updated_at":"2015-06-14T17:49:35Z","closed_at":"2015-06-14T17:49:35Z","body":"Here is a start for additional middleware. Should be cleaned up and added to the updated djeroku.\r\n\r\n```\r\nif environ.get('ENVIRONMENT_TYPE') == 'production':\r\n    MIDDLEWARE_CLASSES = (\r\n        ['lib.djeroku.middleware.SslOnlyMiddleware'] +\r\n        list(MIDDLEWARE_CLASSES) +\r\n        ['pipeline.middleware.MinifyHTMLMiddleware'])\r\nelse:\r\n    MIDDLEWARE_CLASSES += ('pipeline.middleware.MinifyHTMLMiddleware',)\r\n```\r\n"}}