{"action":"created","comment":{"url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/comments/41314497","id":41314497,"diff_hunk":"@@ -111,15 +119,29 @@ loadApp = (logger, loadedConfig) ->\n     app.get \"#{ APP_ROOT }/v1/health-check\", (req, res) ->\n       res.send('OK\\n')\n \n-    port = process.env.PORT ? loadedConfig.get('server.port').get() ? 5000\n-    app.listen(port)\n-\n-    logger.log('Server listening on port %d in %s mode', port, app.settings.env)\n+    if loadedConfig.get('server.https.options').get() instanceof Object\n+      https = require 'https'\n+      fs = require 'fs'\n+      httpsOptions = _.mapObject loadedConfig.get('server.https.options').get(), (v, k) ->\n+        if _.isString(v)","path":"server.coffee","position":65,"original_position":65,"commit_id":"fe2d81240989c6be1e706621368625e3c847491c","original_commit_id":"fe2d81240989c6be1e706621368625e3c847491c","user":{"login":"zackbloom","id":55347,"avatar_url":"https://avatars.githubusercontent.com/u/55347?v=3","gravatar_id":"","url":"https://api.github.com/users/zackbloom","html_url":"https://github.com/zackbloom","followers_url":"https://api.github.com/users/zackbloom/followers","following_url":"https://api.github.com/users/zackbloom/following{/other_user}","gists_url":"https://api.github.com/users/zackbloom/gists{/gist_id}","starred_url":"https://api.github.com/users/zackbloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackbloom/subscriptions","organizations_url":"https://api.github.com/users/zackbloom/orgs","repos_url":"https://api.github.com/users/zackbloom/repos","events_url":"https://api.github.com/users/zackbloom/events{/privacy}","received_events_url":"https://api.github.com/users/zackbloom/received_events","type":"User","site_admin":false},"body":"So this is saying any option can also be a file? That seems very dangerous.  What if my string value also happens to be a file? I'm not a big fan of errors which appear and disappear based on what files show up in the local directory.","created_at":"2015-10-06T20:04:40Z","updated_at":"2015-10-06T20:04:40Z","html_url":"https://github.com/HubSpot/BuckyServer/pull/18#discussion_r41314497","pull_request_url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/comments/41314497"},"html":{"href":"https://github.com/HubSpot/BuckyServer/pull/18#discussion_r41314497"},"pull_request":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18","id":46307436,"html_url":"https://github.com/HubSpot/BuckyServer/pull/18","diff_url":"https://github.com/HubSpot/BuckyServer/pull/18.diff","patch_url":"https://github.com/HubSpot/BuckyServer/pull/18.patch","issue_url":"https://api.github.com/repos/HubSpot/BuckyServer/issues/18","number":18,"state":"open","locked":false,"title":"Add InfluxDB Line Protocol Support, and Add endpoint for JSON","user":{"login":"JSMike","id":4580828,"avatar_url":"https://avatars.githubusercontent.com/u/4580828?v=3","gravatar_id":"","url":"https://api.github.com/users/JSMike","html_url":"https://github.com/JSMike","followers_url":"https://api.github.com/users/JSMike/followers","following_url":"https://api.github.com/users/JSMike/following{/other_user}","gists_url":"https://api.github.com/users/JSMike/gists{/gist_id}","starred_url":"https://api.github.com/users/JSMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSMike/subscriptions","organizations_url":"https://api.github.com/users/JSMike/orgs","repos_url":"https://api.github.com/users/JSMike/repos","events_url":"https://api.github.com/users/JSMike/events{/privacy}","received_events_url":"https://api.github.com/users/JSMike/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-29T17:32:54Z","updated_at":"2015-10-06T20:04:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da9d8825ec9dd19cbcdd385e60b96d2bef6151fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18/commits","review_comments_url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18/comments","review_comment_url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubSpot/BuckyServer/issues/18/comments","statuses_url":"https://api.github.com/repos/HubSpot/BuckyServer/statuses/fe2d81240989c6be1e706621368625e3c847491c","head":{"label":"JSMike:master","ref":"master","sha":"fe2d81240989c6be1e706621368625e3c847491c","user":{"login":"JSMike","id":4580828,"avatar_url":"https://avatars.githubusercontent.com/u/4580828?v=3","gravatar_id":"","url":"https://api.github.com/users/JSMike","html_url":"https://github.com/JSMike","followers_url":"https://api.github.com/users/JSMike/followers","following_url":"https://api.github.com/users/JSMike/following{/other_user}","gists_url":"https://api.github.com/users/JSMike/gists{/gist_id}","starred_url":"https://api.github.com/users/JSMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSMike/subscriptions","organizations_url":"https://api.github.com/users/JSMike/orgs","repos_url":"https://api.github.com/users/JSMike/repos","events_url":"https://api.github.com/users/JSMike/events{/privacy}","received_events_url":"https://api.github.com/users/JSMike/received_events","type":"User","site_admin":false},"repo":{"id":36830193,"name":"BuckyServer","full_name":"JSMike/BuckyServer","owner":{"login":"JSMike","id":4580828,"avatar_url":"https://avatars.githubusercontent.com/u/4580828?v=3","gravatar_id":"","url":"https://api.github.com/users/JSMike","html_url":"https://github.com/JSMike","followers_url":"https://api.github.com/users/JSMike/followers","following_url":"https://api.github.com/users/JSMike/following{/other_user}","gists_url":"https://api.github.com/users/JSMike/gists{/gist_id}","starred_url":"https://api.github.com/users/JSMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSMike/subscriptions","organizations_url":"https://api.github.com/users/JSMike/orgs","repos_url":"https://api.github.com/users/JSMike/repos","events_url":"https://api.github.com/users/JSMike/events{/privacy}","received_events_url":"https://api.github.com/users/JSMike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JSMike/BuckyServer","description":"Node server that receives metric data over HTTP & forwards to your service of choice #hubspot-open-source","fork":true,"url":"https://api.github.com/repos/JSMike/BuckyServer","forks_url":"https://api.github.com/repos/JSMike/BuckyServer/forks","keys_url":"https://api.github.com/repos/JSMike/BuckyServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JSMike/BuckyServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JSMike/BuckyServer/teams","hooks_url":"https://api.github.com/repos/JSMike/BuckyServer/hooks","issue_events_url":"https://api.github.com/repos/JSMike/BuckyServer/issues/events{/number}","events_url":"https://api.github.com/repos/JSMike/BuckyServer/events","assignees_url":"https://api.github.com/repos/JSMike/BuckyServer/assignees{/user}","branches_url":"https://api.github.com/repos/JSMike/BuckyServer/branches{/branch}","tags_url":"https://api.github.com/repos/JSMike/BuckyServer/tags","blobs_url":"https://api.github.com/repos/JSMike/BuckyServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JSMike/BuckyServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JSMike/BuckyServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/JSMike/BuckyServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JSMike/BuckyServer/statuses/{sha}","languages_url":"https://api.github.com/repos/JSMike/BuckyServer/languages","stargazers_url":"https://api.github.com/repos/JSMike/BuckyServer/stargazers","contributors_url":"https://api.github.com/repos/JSMike/BuckyServer/contributors","subscribers_url":"https://api.github.com/repos/JSMike/BuckyServer/subscribers","subscription_url":"https://api.github.com/repos/JSMike/BuckyServer/subscription","commits_url":"https://api.github.com/repos/JSMike/BuckyServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/JSMike/BuckyServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/JSMike/BuckyServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/JSMike/BuckyServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/JSMike/BuckyServer/contents/{+path}","compare_url":"https://api.github.com/repos/JSMike/BuckyServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JSMike/BuckyServer/merges","archive_url":"https://api.github.com/repos/JSMike/BuckyServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JSMike/BuckyServer/downloads","issues_url":"https://api.github.com/repos/JSMike/BuckyServer/issues{/number}","pulls_url":"https://api.github.com/repos/JSMike/BuckyServer/pulls{/number}","milestones_url":"https://api.github.com/repos/JSMike/BuckyServer/milestones{/number}","notifications_url":"https://api.github.com/repos/JSMike/BuckyServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JSMike/BuckyServer/labels{/name}","releases_url":"https://api.github.com/repos/JSMike/BuckyServer/releases{/id}","created_at":"2015-06-03T20:57:35Z","updated_at":"2015-09-29T17:51:31Z","pushed_at":"2015-10-06T19:16:15Z","git_url":"git://github.com/JSMike/BuckyServer.git","ssh_url":"git@github.com:JSMike/BuckyServer.git","clone_url":"https://github.com/JSMike/BuckyServer.git","svn_url":"https://github.com/JSMike/BuckyServer","homepage":"http://github.hubspot.com/bucky","size":317,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"HubSpot:master","ref":"master","sha":"29dc0279ed02edf4a61ff496cbcad94501dea30c","user":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":12799302,"name":"BuckyServer","full_name":"HubSpot/BuckyServer","owner":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubSpot/BuckyServer","description":"Node server that receives metric data over HTTP & forwards to your service of choice #hubspot-open-source","fork":false,"url":"https://api.github.com/repos/HubSpot/BuckyServer","forks_url":"https://api.github.com/repos/HubSpot/BuckyServer/forks","keys_url":"https://api.github.com/repos/HubSpot/BuckyServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/BuckyServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/BuckyServer/teams","hooks_url":"https://api.github.com/repos/HubSpot/BuckyServer/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/BuckyServer/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/BuckyServer/events","assignees_url":"https://api.github.com/repos/HubSpot/BuckyServer/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/BuckyServer/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/BuckyServer/tags","blobs_url":"https://api.github.com/repos/HubSpot/BuckyServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/BuckyServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/BuckyServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/BuckyServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/BuckyServer/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/BuckyServer/languages","stargazers_url":"https://api.github.com/repos/HubSpot/BuckyServer/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/BuckyServer/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/BuckyServer/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/BuckyServer/subscription","commits_url":"https://api.github.com/repos/HubSpot/BuckyServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/BuckyServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/BuckyServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/BuckyServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/BuckyServer/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/BuckyServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/BuckyServer/merges","archive_url":"https://api.github.com/repos/HubSpot/BuckyServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/BuckyServer/downloads","issues_url":"https://api.github.com/repos/HubSpot/BuckyServer/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/BuckyServer/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/BuckyServer/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/BuckyServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/BuckyServer/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/BuckyServer/releases{/id}","created_at":"2013-09-13T02:02:25Z","updated_at":"2015-10-04T13:24:24Z","pushed_at":"2015-09-30T20:31:38Z","git_url":"git://github.com/HubSpot/BuckyServer.git","ssh_url":"git@github.com:HubSpot/BuckyServer.git","clone_url":"https://github.com/HubSpot/BuckyServer.git","svn_url":"https://github.com/HubSpot/BuckyServer","homepage":"http://github.hubspot.com/bucky","size":618,"stargazers_count":143,"watchers_count":143,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":6,"forks":20,"open_issues":6,"watchers":143,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18"},"html":{"href":"https://github.com/HubSpot/BuckyServer/pull/18"},"issue":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/issues/18"},"comments":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/HubSpot/BuckyServer/statuses/fe2d81240989c6be1e706621368625e3c847491c"}}}}