{"action":"created","issue":{"url":"https://api.github.com/repos/octohost/octohost/issues/101","labels_url":"https://api.github.com/repos/octohost/octohost/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/octohost/octohost/issues/101/comments","events_url":"https://api.github.com/repos/octohost/octohost/issues/101/events","html_url":"https://github.com/octohost/octohost/issues/101","id":56989437,"number":101,"title":"Force SSL","user":{"login":"joshuacox","id":6137404,"avatar_url":"https://avatars.githubusercontent.com/u/6137404?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuacox","html_url":"https://github.com/joshuacox","followers_url":"https://api.github.com/users/joshuacox/followers","following_url":"https://api.github.com/users/joshuacox/following{/other_user}","gists_url":"https://api.github.com/users/joshuacox/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuacox/subscriptions","organizations_url":"https://api.github.com/users/joshuacox/orgs","repos_url":"https://api.github.com/users/joshuacox/repos","events_url":"https://api.github.com/users/joshuacox/events{/privacy}","received_events_url":"https://api.github.com/users/joshuacox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-09T05:03:46Z","updated_at":"2015-02-09T20:38:09Z","closed_at":null,"body":"Force SSL with a magic comment, forcing another nginx template which merely does something like this:\r\n\r\n```\r\nserver {\r\n    listen   80;\r\n    listen   [::]:80;\r\n\r\n    server_name www.example.com;\r\n\r\n    return 301 https://$server_name$request_uri;\r\n}\r\nserver {\r\n    listen   443 default_server ssl;\r\n\r\n    server_name www.example.com;\r\n\r\n    ssl_certificate        /path/to/my/cert;\r\n    ssl_certificate_key  /path/to/my/key;\r\n}\r\n```\r\nread more here for other possibilities:\r\nhttp://serverfault.com/questions/250476/how-to-force-or-redirect-to-ssl-in-nginx\r\n\r\ndouble bonus points for giving a cert to be used with said site.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/octohost/octohost/issues/comments/73585210","html_url":"https://github.com/octohost/octohost/issues/101#issuecomment-73585210","issue_url":"https://api.github.com/repos/octohost/octohost/issues/101","id":73585210,"user":{"login":"joshuacox","id":6137404,"avatar_url":"https://avatars.githubusercontent.com/u/6137404?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuacox","html_url":"https://github.com/joshuacox","followers_url":"https://api.github.com/users/joshuacox/followers","following_url":"https://api.github.com/users/joshuacox/following{/other_user}","gists_url":"https://api.github.com/users/joshuacox/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuacox/subscriptions","organizations_url":"https://api.github.com/users/joshuacox/orgs","repos_url":"https://api.github.com/users/joshuacox/repos","events_url":"https://api.github.com/users/joshuacox/events{/privacy}","received_events_url":"https://api.github.com/users/joshuacox/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T20:38:09Z","updated_at":"2015-02-09T20:38:09Z","body":"This is definitely a better way to do it."}}