{"action":"created","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/427","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/427/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/427/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/427","id":56719633,"number":427,"title":"https option is member of \"server\" option, not standalone","user":{"login":"yourcelf","id":21318,"avatar_url":"https://avatars.githubusercontent.com/u/21318?v=3","gravatar_id":"","url":"https://api.github.com/users/yourcelf","html_url":"https://github.com/yourcelf","followers_url":"https://api.github.com/users/yourcelf/followers","following_url":"https://api.github.com/users/yourcelf/following{/other_user}","gists_url":"https://api.github.com/users/yourcelf/gists{/gist_id}","starred_url":"https://api.github.com/users/yourcelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yourcelf/subscriptions","organizations_url":"https://api.github.com/users/yourcelf/orgs","repos_url":"https://api.github.com/users/yourcelf/repos","events_url":"https://api.github.com/users/yourcelf/events{/privacy}","received_events_url":"https://api.github.com/users/yourcelf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-05T19:49:07Z","updated_at":"2015-02-05T23:06:40Z","closed_at":"2015-02-05T23:06:24Z","body":"The docs (in the [example here](https://github.com/BrowserSync/browser-sync/blob/9087e547cb193edd2ebebdb17ddfbd5c32ee7626/examples/server.secure.js), and also in the main options documentation) show https as a standalone option, e.g.:\r\n\r\n```js\r\nbrowserSync({\r\n    server: {baseDir: 'app/'},\r\n    https: true\r\n});\r\n```\r\n\r\nHowever, this doesn't work.  ``https`` is only read as a member of the ``server`` option, e.g.\r\n\r\n```js\r\nbrowserSync({\r\n    server: {baseDir: 'app/', https: true}\r\n})\r\n```\r\n\r\nThe only [spec testing this](https://github.com/BrowserSync/browser-sync/blob/9087e547cb193edd2ebebdb17ddfbd5c32ee7626/test/specs/utils/utils.updateOptions.js) puts the ``https`` option within the ``server`` option.\r\n\r\nPerhaps of note: it seems that the method ``getScheme`` in ``lib/utils.js``, which appears to read ``https`` as a standalone option, is not called on server startup.\r\n\r\nRunning `2.0.0-rc7`."},"comment":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/comments/73149587","html_url":"https://github.com/BrowserSync/browser-sync/issues/427#issuecomment-73149587","issue_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/427","id":73149587,"user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T23:06:40Z","updated_at":"2015-02-05T23:06:40Z","body":"```npm install browser-sync@2.0.0-rc8```"}}