{"action":"created","issue":{"url":"https://api.github.com/repos/LiskHQ/lisk/issues/168","repository_url":"https://api.github.com/repos/LiskHQ/lisk","labels_url":"https://api.github.com/repos/LiskHQ/lisk/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/LiskHQ/lisk/issues/168/comments","events_url":"https://api.github.com/repos/LiskHQ/lisk/issues/168/events","html_url":"https://github.com/LiskHQ/lisk/issues/168","id":158481466,"number":168,"title":"BuiltIn Extra HTTP Web Service for automatic HTTP to HTTPS redirection","user":{"login":"Gr33nDrag0n69","id":18356726,"avatar_url":"https://avatars.githubusercontent.com/u/18356726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gr33nDrag0n69","html_url":"https://github.com/Gr33nDrag0n69","followers_url":"https://api.github.com/users/Gr33nDrag0n69/followers","following_url":"https://api.github.com/users/Gr33nDrag0n69/following{/other_user}","gists_url":"https://api.github.com/users/Gr33nDrag0n69/gists{/gist_id}","starred_url":"https://api.github.com/users/Gr33nDrag0n69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gr33nDrag0n69/subscriptions","organizations_url":"https://api.github.com/users/Gr33nDrag0n69/orgs","repos_url":"https://api.github.com/users/Gr33nDrag0n69/repos","events_url":"https://api.github.com/users/Gr33nDrag0n69/events{/privacy}","received_events_url":"https://api.github.com/users/Gr33nDrag0n69/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-04T01:52:05Z","updated_at":"2016-06-04T11:22:54Z","closed_at":null,"body":"We need an easy integrated way of serving 301 redirect to https trought http protocol\r\n\r\nAs I understand it, the lisk software open 1x http service and 1x https service.\r\nThe port used are already configurable in the config.json file. (for example, I use 8000 and 2443 using a prerouting rule to redirect 443 to 2443) \r\n\r\nCurrently someone need to install nginx using something like:\r\n\r\nserver {\r\n  listen 80;\r\n  server_name lisk.mydomain.com;\r\n  rewrite ^ https://$server_name$request_uri? permanent;\r\n}\r\n\r\nOR\r\n\r\nserver {\r\n       listen         80;\r\n       server_name    lisk.mydomain.com;\r\n       return         301 https://$server_name$request_uri;\r\n}\r\n\r\nMy idea would be to add another available port in the SSL section of the config.\r\nlike :\r\n\r\n\"ssl\": {\r\n    \"options\": {\r\n      \"port\": 2443,\r\n\t  \"301port\": 2080,\r\n\t  ...\r\n    }\r\n\r\nAnd serve the 301 directly from lisk client (should be easier to do then rewrite I think)\r\n\r\nThat way a simple redirection from 80 -> 2080 would do the trick so evryone is always HTTPS without the need to install nginx, apache or else. (Using already built-in web client)"},"comment":{"url":"https://api.github.com/repos/LiskHQ/lisk/issues/comments/223750489","html_url":"https://github.com/LiskHQ/lisk/issues/168#issuecomment-223750489","issue_url":"https://api.github.com/repos/LiskHQ/lisk/issues/168","id":223750489,"user":{"login":"ByronAP","id":7310089,"avatar_url":"https://avatars.githubusercontent.com/u/7310089?v=3","gravatar_id":"","url":"https://api.github.com/users/ByronAP","html_url":"https://github.com/ByronAP","followers_url":"https://api.github.com/users/ByronAP/followers","following_url":"https://api.github.com/users/ByronAP/following{/other_user}","gists_url":"https://api.github.com/users/ByronAP/gists{/gist_id}","starred_url":"https://api.github.com/users/ByronAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByronAP/subscriptions","organizations_url":"https://api.github.com/users/ByronAP/orgs","repos_url":"https://api.github.com/users/ByronAP/repos","events_url":"https://api.github.com/users/ByronAP/events{/privacy}","received_events_url":"https://api.github.com/users/ByronAP/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T11:22:54Z","updated_at":"2016-06-04T11:22:54Z","body":"Also NGINX is not available on every platform so another headache would be ensuring the machine is capable of running it."}}
{"actor":{"display_login":"ByronAP"}}