{"action":"opened","number":1012,"pull_request":{"url":"https://api.github.com/repos/thelounge/lounge/pulls/1012","id":114270875,"html_url":"https://github.com/thelounge/lounge/pull/1012","diff_url":"https://github.com/thelounge/lounge/pull/1012.diff","patch_url":"https://github.com/thelounge/lounge/pull/1012.patch","issue_url":"https://api.github.com/repos/thelounge/lounge/issues/1012","number":1012,"state":"open","locked":false,"title":"Alternative way to use http and https on same port","user":{"login":"metsjeesus","id":17363990,"avatar_url":"https://avatars2.githubusercontent.com/u/17363990?v=3","gravatar_id":"","url":"https://api.github.com/users/metsjeesus","html_url":"https://github.com/metsjeesus","followers_url":"https://api.github.com/users/metsjeesus/followers","following_url":"https://api.github.com/users/metsjeesus/following{/other_user}","gists_url":"https://api.github.com/users/metsjeesus/gists{/gist_id}","starred_url":"https://api.github.com/users/metsjeesus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metsjeesus/subscriptions","organizations_url":"https://api.github.com/users/metsjeesus/orgs","repos_url":"https://api.github.com/users/metsjeesus/repos","events_url":"https://api.github.com/users/metsjeesus/events{/privacy}","received_events_url":"https://api.github.com/users/metsjeesus/received_events","type":"User","site_admin":false},"body":"@astorije closed last pull request https://github.com/thelounge/lounge/pull/996 and i found a new way to fix the problem. So there it is. If hostname is set, it will redirect to that hostname. Http works same way, https is changed. On https, server now allows both http and https connections on same port. If connection is not secure, redirects to https. Its important, that same lounge server can response different hostnames, thats the reason why i dont use host as base in config file, because it locks me with one hostname. \r\n\r\nOther then that, now i let router redirect both 80 and 443 ports to 9000 on my pi lounge server. -1 port open, added bit security.","created_at":"2017-04-05T00:17:19Z","updated_at":"2017-04-05T00:17:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/thelounge/lounge/pulls/1012/commits","review_comments_url":"https://api.github.com/repos/thelounge/lounge/pulls/1012/comments","review_comment_url":"https://api.github.com/repos/thelounge/lounge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thelounge/lounge/issues/1012/comments","statuses_url":"https://api.github.com/repos/thelounge/lounge/statuses/3531d854d8196235e1d6b55de5edb837840fc61b","head":{"label":"metsjeesus:http_redirect","ref":"http_redirect","sha":"3531d854d8196235e1d6b55de5edb837840fc61b","user":{"login":"metsjeesus","id":17363990,"avatar_url":"https://avatars2.githubusercontent.com/u/17363990?v=3","gravatar_id":"","url":"https://api.github.com/users/metsjeesus","html_url":"https://github.com/metsjeesus","followers_url":"https://api.github.com/users/metsjeesus/followers","following_url":"https://api.github.com/users/metsjeesus/following{/other_user}","gists_url":"https://api.github.com/users/metsjeesus/gists{/gist_id}","starred_url":"https://api.github.com/users/metsjeesus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metsjeesus/subscriptions","organizations_url":"https://api.github.com/users/metsjeesus/orgs","repos_url":"https://api.github.com/users/metsjeesus/repos","events_url":"https://api.github.com/users/metsjeesus/events{/privacy}","received_events_url":"https://api.github.com/users/metsjeesus/received_events","type":"User","site_admin":false},"repo":{"id":86015437,"name":"lounge","full_name":"metsjeesus/lounge","owner":{"login":"metsjeesus","id":17363990,"avatar_url":"https://avatars2.githubusercontent.com/u/17363990?v=3","gravatar_id":"","url":"https://api.github.com/users/metsjeesus","html_url":"https://github.com/metsjeesus","followers_url":"https://api.github.com/users/metsjeesus/followers","following_url":"https://api.github.com/users/metsjeesus/following{/other_user}","gists_url":"https://api.github.com/users/metsjeesus/gists{/gist_id}","starred_url":"https://api.github.com/users/metsjeesus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metsjeesus/subscriptions","organizations_url":"https://api.github.com/users/metsjeesus/orgs","repos_url":"https://api.github.com/users/metsjeesus/repos","events_url":"https://api.github.com/users/metsjeesus/events{/privacy}","received_events_url":"https://api.github.com/users/metsjeesus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/metsjeesus/lounge","description":"💬 The Lounge — Self-hosted web IRC client","fork":true,"url":"https://api.github.com/repos/metsjeesus/lounge","forks_url":"https://api.github.com/repos/metsjeesus/lounge/forks","keys_url":"https://api.github.com/repos/metsjeesus/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metsjeesus/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metsjeesus/lounge/teams","hooks_url":"https://api.github.com/repos/metsjeesus/lounge/hooks","issue_events_url":"https://api.github.com/repos/metsjeesus/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/metsjeesus/lounge/events","assignees_url":"https://api.github.com/repos/metsjeesus/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/metsjeesus/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/metsjeesus/lounge/tags","blobs_url":"https://api.github.com/repos/metsjeesus/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metsjeesus/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metsjeesus/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/metsjeesus/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metsjeesus/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/metsjeesus/lounge/languages","stargazers_url":"https://api.github.com/repos/metsjeesus/lounge/stargazers","contributors_url":"https://api.github.com/repos/metsjeesus/lounge/contributors","subscribers_url":"https://api.github.com/repos/metsjeesus/lounge/subscribers","subscription_url":"https://api.github.com/repos/metsjeesus/lounge/subscription","commits_url":"https://api.github.com/repos/metsjeesus/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/metsjeesus/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/metsjeesus/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/metsjeesus/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/metsjeesus/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/metsjeesus/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metsjeesus/lounge/merges","archive_url":"https://api.github.com/repos/metsjeesus/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metsjeesus/lounge/downloads","issues_url":"https://api.github.com/repos/metsjeesus/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/metsjeesus/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/metsjeesus/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/metsjeesus/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metsjeesus/lounge/labels{/name}","releases_url":"https://api.github.com/repos/metsjeesus/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/metsjeesus/lounge/deployments","created_at":"2017-03-24T01:46:27Z","updated_at":"2017-03-24T01:46:29Z","pushed_at":"2017-04-05T00:06:11Z","git_url":"git://github.com/metsjeesus/lounge.git","ssh_url":"git@github.com:metsjeesus/lounge.git","clone_url":"https://github.com/metsjeesus/lounge.git","svn_url":"https://github.com/metsjeesus/lounge","homepage":"https://thelounge.github.io","size":6018,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thelounge:master","ref":"master","sha":"10bafb8b5d59ab28df2da19fbce30386053f06e8","user":{"login":"thelounge","id":14336958,"avatar_url":"https://avatars2.githubusercontent.com/u/14336958?v=3","gravatar_id":"","url":"https://api.github.com/users/thelounge","html_url":"https://github.com/thelounge","followers_url":"https://api.github.com/users/thelounge/followers","following_url":"https://api.github.com/users/thelounge/following{/other_user}","gists_url":"https://api.github.com/users/thelounge/gists{/gist_id}","starred_url":"https://api.github.com/users/thelounge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelounge/subscriptions","organizations_url":"https://api.github.com/users/thelounge/orgs","repos_url":"https://api.github.com/users/thelounge/repos","events_url":"https://api.github.com/users/thelounge/events{/privacy}","received_events_url":"https://api.github.com/users/thelounge/received_events","type":"Organization","site_admin":false},"repo":{"id":51344082,"name":"lounge","full_name":"thelounge/lounge","owner":{"login":"thelounge","id":14336958,"avatar_url":"https://avatars2.githubusercontent.com/u/14336958?v=3","gravatar_id":"","url":"https://api.github.com/users/thelounge","html_url":"https://github.com/thelounge","followers_url":"https://api.github.com/users/thelounge/followers","following_url":"https://api.github.com/users/thelounge/following{/other_user}","gists_url":"https://api.github.com/users/thelounge/gists{/gist_id}","starred_url":"https://api.github.com/users/thelounge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelounge/subscriptions","organizations_url":"https://api.github.com/users/thelounge/orgs","repos_url":"https://api.github.com/users/thelounge/repos","events_url":"https://api.github.com/users/thelounge/events{/privacy}","received_events_url":"https://api.github.com/users/thelounge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thelounge/lounge","description":"💬 The Lounge — Self-hosted web IRC client","fork":false,"url":"https://api.github.com/repos/thelounge/lounge","forks_url":"https://api.github.com/repos/thelounge/lounge/forks","keys_url":"https://api.github.com/repos/thelounge/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thelounge/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thelounge/lounge/teams","hooks_url":"https://api.github.com/repos/thelounge/lounge/hooks","issue_events_url":"https://api.github.com/repos/thelounge/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/thelounge/lounge/events","assignees_url":"https://api.github.com/repos/thelounge/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/thelounge/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/thelounge/lounge/tags","blobs_url":"https://api.github.com/repos/thelounge/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thelounge/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thelounge/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/thelounge/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thelounge/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/thelounge/lounge/languages","stargazers_url":"https://api.github.com/repos/thelounge/lounge/stargazers","contributors_url":"https://api.github.com/repos/thelounge/lounge/contributors","subscribers_url":"https://api.github.com/repos/thelounge/lounge/subscribers","subscription_url":"https://api.github.com/repos/thelounge/lounge/subscription","commits_url":"https://api.github.com/repos/thelounge/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/thelounge/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/thelounge/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/thelounge/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/thelounge/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/thelounge/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thelounge/lounge/merges","archive_url":"https://api.github.com/repos/thelounge/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thelounge/lounge/downloads","issues_url":"https://api.github.com/repos/thelounge/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/thelounge/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/thelounge/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/thelounge/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thelounge/lounge/labels{/name}","releases_url":"https://api.github.com/repos/thelounge/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/thelounge/lounge/deployments","created_at":"2016-02-09T03:16:03Z","updated_at":"2017-04-04T22:09:38Z","pushed_at":"2017-04-04T21:10:07Z","git_url":"git://github.com/thelounge/lounge.git","ssh_url":"git@github.com:thelounge/lounge.git","clone_url":"https://github.com/thelounge/lounge.git","svn_url":"https://github.com/thelounge/lounge","homepage":"https://thelounge.github.io","size":5987,"stargazers_count":1048,"watchers_count":1048,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":166,"mirror_url":null,"open_issues_count":180,"forks":166,"open_issues":180,"watchers":1048,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/1012"},"html":{"href":"https://github.com/thelounge/lounge/pull/1012"},"issue":{"href":"https://api.github.com/repos/thelounge/lounge/issues/1012"},"comments":{"href":"https://api.github.com/repos/thelounge/lounge/issues/1012/comments"},"review_comments":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/1012/comments"},"review_comment":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thelounge/lounge/pulls/1012/commits"},"statuses":{"href":"https://api.github.com/repos/thelounge/lounge/statuses/3531d854d8196235e1d6b55de5edb837840fc61b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":58,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"metsjeesus"}}