{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/1914","repository_url":"https://api.github.com/repos/node-red/node-red","labels_url":"https://api.github.com/repos/node-red/node-red/issues/1914/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/1914/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/1914/events","html_url":"https://github.com/node-red/node-red/issues/1914","id":366164779,"node_id":"MDU6SXNzdWUzNjYxNjQ3Nzk=","number":1914,"title":"Can't enable redirect HTTPS and possible typo on settings.js","user":{"login":"bigbang55","id":11768068,"node_id":"MDQ6VXNlcjExNzY4MDY4","avatar_url":"https://avatars1.githubusercontent.com/u/11768068?v=4","gravatar_id":"","url":"https://api.github.com/users/bigbang55","html_url":"https://github.com/bigbang55","followers_url":"https://api.github.com/users/bigbang55/followers","following_url":"https://api.github.com/users/bigbang55/following{/other_user}","gists_url":"https://api.github.com/users/bigbang55/gists{/gist_id}","starred_url":"https://api.github.com/users/bigbang55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigbang55/subscriptions","organizations_url":"https://api.github.com/users/bigbang55/orgs","repos_url":"https://api.github.com/users/bigbang55/repos","events_url":"https://api.github.com/users/bigbang55/events{/privacy}","received_events_url":"https://api.github.com/users/bigbang55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T03:52:04Z","updated_at":"2018-10-03T07:10:52Z","closed_at":null,"author_association":"NONE","body":"### What are the steps to reproduce?\r\n\r\n1. enable *requireHttps: true* in the *settings.js*\r\n2. enable https: { } and add private key/certificate\r\n3. start node-red\r\n\r\n### What happens?\r\n\r\nHTTPS works fine, but when using HTTP I'm not being redirected to HTTPS. Also the commented *requireHttps: true* in the base *settings.js* is missing a comma.\r\n\r\n### What do you expect to happen?\r\n\r\nAccessing http://example.com:1880 to redirect me to https://example.com:1880\r\n\r\n### Please tell us about your environment:\r\n\r\n- [ ] Node-RED version: v0.19.4\r\n- [ ] node.js version: v10.11.0\r\n- [ ] npm version: v6.4.1\r\n- [ ] Platform/OS: Ubuntu 18.0.4\r\n- [ ] Browser: Google Chrome\r\n"},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/426534208","html_url":"https://github.com/node-red/node-red/issues/1914#issuecomment-426534208","issue_url":"https://api.github.com/repos/node-red/node-red/issues/1914","id":426534208,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjUzNDIwOA==","user":{"login":"hardillb","id":1800845,"node_id":"MDQ6VXNlcjE4MDA4NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1800845?v=4","gravatar_id":"","url":"https://api.github.com/users/hardillb","html_url":"https://github.com/hardillb","followers_url":"https://api.github.com/users/hardillb/followers","following_url":"https://api.github.com/users/hardillb/following{/other_user}","gists_url":"https://api.github.com/users/hardillb/gists{/gist_id}","starred_url":"https://api.github.com/users/hardillb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardillb/subscriptions","organizations_url":"https://api.github.com/users/hardillb/orgs","repos_url":"https://api.github.com/users/hardillb/repos","events_url":"https://api.github.com/users/hardillb/events{/privacy}","received_events_url":"https://api.github.com/users/hardillb/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T07:10:52Z","updated_at":"2018-10-03T07:10:52Z","author_association":"MEMBER","body":"This is working as intended, you can't have a redirect on the same port (both your examples are running on port 1880)"}}
{"actor":{"display_login":"hardillb"}}