{"action":"closed","issue":{"url":"https://api.github.com/repos/zedtux/nginx-proxy/issues/8","repository_url":"https://api.github.com/repos/zedtux/nginx-proxy","labels_url":"https://api.github.com/repos/zedtux/nginx-proxy/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/zedtux/nginx-proxy/issues/8/comments","events_url":"https://api.github.com/repos/zedtux/nginx-proxy/issues/8/events","html_url":"https://github.com/zedtux/nginx-proxy/issues/8","id":52496792,"number":8,"title":"Redirect http to https site if SSL is enabled","user":{"login":"adamlc","id":809944,"avatar_url":"https://avatars.githubusercontent.com/u/809944?v=3","gravatar_id":"","url":"https://api.github.com/users/adamlc","html_url":"https://github.com/adamlc","followers_url":"https://api.github.com/users/adamlc/followers","following_url":"https://api.github.com/users/adamlc/following{/other_user}","gists_url":"https://api.github.com/users/adamlc/gists{/gist_id}","starred_url":"https://api.github.com/users/adamlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamlc/subscriptions","organizations_url":"https://api.github.com/users/adamlc/orgs","repos_url":"https://api.github.com/users/adamlc/repos","events_url":"https://api.github.com/users/adamlc/events{/privacy}","received_events_url":"https://api.github.com/users/adamlc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-19T15:50:08Z","updated_at":"2016-03-17T10:11:07Z","closed_at":"2016-03-17T10:11:07Z","body":"Would it be possible to add this in? The upstream has it in, it would be a nice feature :)\r\n\r\nSomething like this looks like it would work:\r\n\r\n```\r\nserver {\r\n\tserver_name {{ $host }};\r\n\trewrite ^(.*) https://{{ $host }}$1 permanent;\r\n}\r\n```"}}