{"action":"created","issue":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1281","repository_url":"https://api.github.com/repos/sandstorm-io/sandstorm","labels_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1281/labels{/name}","comments_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1281/comments","events_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1281/events","html_url":"https://github.com/sandstorm-io/sandstorm/issues/1281","id":121888590,"number":1281,"title":"Sandstorm/Sandcats installer need better check for ports.","user":{"login":"noci2012","id":1962961,"avatar_url":"https://avatars.githubusercontent.com/u/1962961?v=3","gravatar_id":"","url":"https://api.github.com/users/noci2012","html_url":"https://github.com/noci2012","followers_url":"https://api.github.com/users/noci2012/followers","following_url":"https://api.github.com/users/noci2012/following{/other_user}","gists_url":"https://api.github.com/users/noci2012/gists{/gist_id}","starred_url":"https://api.github.com/users/noci2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noci2012/subscriptions","organizations_url":"https://api.github.com/users/noci2012/orgs","repos_url":"https://api.github.com/users/noci2012/repos","events_url":"https://api.github.com/users/noci2012/events{/privacy}","received_events_url":"https://api.github.com/users/noci2012/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"paulproteus","id":25457,"avatar_url":"https://avatars.githubusercontent.com/u/25457?v=3","gravatar_id":"","url":"https://api.github.com/users/paulproteus","html_url":"https://github.com/paulproteus","followers_url":"https://api.github.com/users/paulproteus/followers","following_url":"https://api.github.com/users/paulproteus/following{/other_user}","gists_url":"https://api.github.com/users/paulproteus/gists{/gist_id}","starred_url":"https://api.github.com/users/paulproteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulproteus/subscriptions","organizations_url":"https://api.github.com/users/paulproteus/orgs","repos_url":"https://api.github.com/users/paulproteus/repos","events_url":"https://api.github.com/users/paulproteus/events{/privacy}","received_events_url":"https://api.github.com/users/paulproteus/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-13T00:08:17Z","updated_at":"2016-05-13T00:34:20Z","closed_at":null,"body":"During installation of a sandcats instance it is needed that different ports from 80/443 are checked and specified.  I have a use case where a system already is running a web server on port 80/443, and this needs to be on another port.\r\n\r\nsandstorm --listen=7080 --listen-ssl=7443 --sandcats=xxxx.sandcats.io\r\n\r\nThe sandcats instance will be accessed through a SNI capable SSL blind proxy\r\n\r\nFrom #1210 "},"comment":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/comments/218923571","html_url":"https://github.com/sandstorm-io/sandstorm/issues/1281#issuecomment-218923571","issue_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1281","id":218923571,"user":{"login":"paulproteus","id":25457,"avatar_url":"https://avatars.githubusercontent.com/u/25457?v=3","gravatar_id":"","url":"https://api.github.com/users/paulproteus","html_url":"https://github.com/paulproteus","followers_url":"https://api.github.com/users/paulproteus/followers","following_url":"https://api.github.com/users/paulproteus/following{/other_user}","gists_url":"https://api.github.com/users/paulproteus/gists{/gist_id}","starred_url":"https://api.github.com/users/paulproteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulproteus/subscriptions","organizations_url":"https://api.github.com/users/paulproteus/orgs","repos_url":"https://api.github.com/users/paulproteus/repos","events_url":"https://api.github.com/users/paulproteus/events{/privacy}","received_events_url":"https://api.github.com/users/paulproteus/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T00:34:20Z","updated_at":"2016-05-13T00:34:20Z","body":"Hi @noci2012 ,\r\n\r\nHere's some proposed logic.\r\n\r\n- Check if port 80 is available. If not, hope that 6080 is available and use that for HTTP.\r\n\r\n- Check if port 443 is available. If not, hope that 6443 is available and use that for HTTPS, if the user has a sandcats hostname.\r\n\r\nThe primary change is that by default, then, on a system with sandcats but port 443 already bound, after this change, the system would default to using a sandcats domain name *with HTTPS enabled* and on port 6443.\r\n\r\n+1/-1 ?"}}