{"action":"created","comment":{"url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/comments/83053087","pull_request_review_id":3918947,"id":83053087,"diff_hunk":"@@ -0,0 +1,55 @@\n+/**\n+ * Docker environment settings\n+ */\n+\n+module.exports = {\n+\n+  models: {\n+    connection: 'postgresql',\n+    migrate: 'alter'\n+  },\n+\n+  port: 80,\n+\n+  log: {\n+    level: process.env['LOG_LEVEL']\n+  },\n+\n+  auth: {\n+    static: {\n+      username: process.env['APP_USERNAME'],\n+      password: process.env['APP_PASSWORD']\n+    }\n+  },\n+  appUrl: process.env['APP_URL'],\n+  connections: {\n+    postgresql: {\n+      adapter: 'sails-postgresql',\n+      host: process.env['DB_HOST'],\n+      port: process.env['DB_PORT'],\n+      user: process.env['DB_USERNAME'],\n+      password: process.env['DB_PASSWORD'],\n+      database: process.env['DB_NAME']\n+    }\n+  },\n+  jwt: {\n+    // Recommended: 63 random alpha-numeric characters\n+    // Generate using: https://www.grc.com/passwords.htm\n+    token_secret: process.env['SECRET'],\n+  },\n+  files: {\n+    dirname: '/tmp/',\n+  },\n+  session: {\n+    // Recommended: 63 random alpha-numeric characters\n+    // Generate using: https://www.grc.com/passwords.htm\n+    token_secret: process.env['SECRET'],","path":"config/docker.js","position":46,"original_position":46,"commit_id":"cc80d00e5cf0228df8f4b66ed01b62e3d7b1f268","original_commit_id":"cc80d00e5cf0228df8f4b66ed01b62e3d7b1f268","user":{"login":"ArekSredzki","id":879918,"avatar_url":"https://avatars.githubusercontent.com/u/879918?v=3","gravatar_id":"","url":"https://api.github.com/users/ArekSredzki","html_url":"https://github.com/ArekSredzki","followers_url":"https://api.github.com/users/ArekSredzki/followers","following_url":"https://api.github.com/users/ArekSredzki/following{/other_user}","gists_url":"https://api.github.com/users/ArekSredzki/gists{/gist_id}","starred_url":"https://api.github.com/users/ArekSredzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArekSredzki/subscriptions","organizations_url":"https://api.github.com/users/ArekSredzki/orgs","repos_url":"https://api.github.com/users/ArekSredzki/repos","events_url":"https://api.github.com/users/ArekSredzki/events{/privacy}","received_events_url":"https://api.github.com/users/ArekSredzki/received_events","type":"User","site_admin":false},"body":"`SECRET` -> `TOKEN_SECRET`","created_at":"2016-10-12T17:11:33Z","updated_at":"2016-10-12T17:11:33Z","html_url":"https://github.com/ArekSredzki/electron-release-server/pull/78#discussion_r83053087","pull_request_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/comments/83053087"},"html":{"href":"https://github.com/ArekSredzki/electron-release-server/pull/78#discussion_r83053087"},"pull_request":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78","id":85735704,"html_url":"https://github.com/ArekSredzki/electron-release-server/pull/78","diff_url":"https://github.com/ArekSredzki/electron-release-server/pull/78.diff","patch_url":"https://github.com/ArekSredzki/electron-release-server/pull/78.patch","issue_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/78","number":78,"state":"open","locked":false,"title":"Tune up docker.","user":{"login":"EvgeneOskin","id":1742201,"avatar_url":"https://avatars.githubusercontent.com/u/1742201?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeneOskin","html_url":"https://github.com/EvgeneOskin","followers_url":"https://api.github.com/users/EvgeneOskin/followers","following_url":"https://api.github.com/users/EvgeneOskin/following{/other_user}","gists_url":"https://api.github.com/users/EvgeneOskin/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeneOskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeneOskin/subscriptions","organizations_url":"https://api.github.com/users/EvgeneOskin/orgs","repos_url":"https://api.github.com/users/EvgeneOskin/repos","events_url":"https://api.github.com/users/EvgeneOskin/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeneOskin/received_events","type":"User","site_admin":false},"body":"Add Dockerfile and docker-compose.yml. Add tuning app by environment variables:\r\n*  `APP_USERNAME`, `APP_PASSWORD` – static username and password for authentication [ref](https://github.com/ArekSredzki/electron-release-server/blob/master/docs/authentication.md#static).\r\n*   `DB_HOST` – hostname of postgres\r\n*   `DB_PORT` – port of postgres\r\n*   `DB_USERNAME`, `DB_PASSWORD` – credentials to access postgres\r\n*   `DB_NAME` – Database name\r\n*    `SECRET` –  Recommended: 63 random alpha-numeric characters\r\n\r\nClose #77.\r\n","created_at":"2016-09-19T03:53:16Z","updated_at":"2016-10-12T17:11:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f84e2095c298a4c1bd7795813444e43b5d57294c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78/commits","review_comments_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78/comments","review_comment_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/78/comments","statuses_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/statuses/cc80d00e5cf0228df8f4b66ed01b62e3d7b1f268","head":{"label":"EvgeneOskin:master","ref":"master","sha":"cc80d00e5cf0228df8f4b66ed01b62e3d7b1f268","user":{"login":"EvgeneOskin","id":1742201,"avatar_url":"https://avatars.githubusercontent.com/u/1742201?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeneOskin","html_url":"https://github.com/EvgeneOskin","followers_url":"https://api.github.com/users/EvgeneOskin/followers","following_url":"https://api.github.com/users/EvgeneOskin/following{/other_user}","gists_url":"https://api.github.com/users/EvgeneOskin/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeneOskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeneOskin/subscriptions","organizations_url":"https://api.github.com/users/EvgeneOskin/orgs","repos_url":"https://api.github.com/users/EvgeneOskin/repos","events_url":"https://api.github.com/users/EvgeneOskin/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeneOskin/received_events","type":"User","site_admin":false},"repo":{"id":67932661,"name":"electron-release-server","full_name":"EvgeneOskin/electron-release-server","owner":{"login":"EvgeneOskin","id":1742201,"avatar_url":"https://avatars.githubusercontent.com/u/1742201?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeneOskin","html_url":"https://github.com/EvgeneOskin","followers_url":"https://api.github.com/users/EvgeneOskin/followers","following_url":"https://api.github.com/users/EvgeneOskin/following{/other_user}","gists_url":"https://api.github.com/users/EvgeneOskin/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeneOskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeneOskin/subscriptions","organizations_url":"https://api.github.com/users/EvgeneOskin/orgs","repos_url":"https://api.github.com/users/EvgeneOskin/repos","events_url":"https://api.github.com/users/EvgeneOskin/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeneOskin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvgeneOskin/electron-release-server","description":"A fully featured, self-hosted release server for electron applications, compatible with auto-updater.","fork":true,"url":"https://api.github.com/repos/EvgeneOskin/electron-release-server","forks_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/forks","keys_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/teams","hooks_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/hooks","issue_events_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/issues/events{/number}","events_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/events","assignees_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/assignees{/user}","branches_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/branches{/branch}","tags_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/tags","blobs_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/statuses/{sha}","languages_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/languages","stargazers_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/stargazers","contributors_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/contributors","subscribers_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/subscribers","subscription_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/subscription","commits_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/contents/{+path}","compare_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/merges","archive_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/downloads","issues_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/issues{/number}","pulls_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/pulls{/number}","milestones_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/milestones{/number}","notifications_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/labels{/name}","releases_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/releases{/id}","deployments_url":"https://api.github.com/repos/EvgeneOskin/electron-release-server/deployments","created_at":"2016-09-11T13:55:11Z","updated_at":"2016-09-11T13:55:12Z","pushed_at":"2016-09-24T06:02:23Z","git_url":"git://github.com/EvgeneOskin/electron-release-server.git","ssh_url":"git@github.com:EvgeneOskin/electron-release-server.git","clone_url":"https://github.com/EvgeneOskin/electron-release-server.git","svn_url":"https://github.com/EvgeneOskin/electron-release-server","homepage":"","size":160,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ArekSredzki:master","ref":"master","sha":"598b010dd8d5dfc7db503bf62422cd1117472bb4","user":{"login":"ArekSredzki","id":879918,"avatar_url":"https://avatars.githubusercontent.com/u/879918?v=3","gravatar_id":"","url":"https://api.github.com/users/ArekSredzki","html_url":"https://github.com/ArekSredzki","followers_url":"https://api.github.com/users/ArekSredzki/followers","following_url":"https://api.github.com/users/ArekSredzki/following{/other_user}","gists_url":"https://api.github.com/users/ArekSredzki/gists{/gist_id}","starred_url":"https://api.github.com/users/ArekSredzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArekSredzki/subscriptions","organizations_url":"https://api.github.com/users/ArekSredzki/orgs","repos_url":"https://api.github.com/users/ArekSredzki/repos","events_url":"https://api.github.com/users/ArekSredzki/events{/privacy}","received_events_url":"https://api.github.com/users/ArekSredzki/received_events","type":"User","site_admin":false},"repo":{"id":52715121,"name":"electron-release-server","full_name":"ArekSredzki/electron-release-server","owner":{"login":"ArekSredzki","id":879918,"avatar_url":"https://avatars.githubusercontent.com/u/879918?v=3","gravatar_id":"","url":"https://api.github.com/users/ArekSredzki","html_url":"https://github.com/ArekSredzki","followers_url":"https://api.github.com/users/ArekSredzki/followers","following_url":"https://api.github.com/users/ArekSredzki/following{/other_user}","gists_url":"https://api.github.com/users/ArekSredzki/gists{/gist_id}","starred_url":"https://api.github.com/users/ArekSredzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArekSredzki/subscriptions","organizations_url":"https://api.github.com/users/ArekSredzki/orgs","repos_url":"https://api.github.com/users/ArekSredzki/repos","events_url":"https://api.github.com/users/ArekSredzki/events{/privacy}","received_events_url":"https://api.github.com/users/ArekSredzki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArekSredzki/electron-release-server","description":"A fully featured, self-hosted release server for electron applications, compatible with auto-updater.","fork":false,"url":"https://api.github.com/repos/ArekSredzki/electron-release-server","forks_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/forks","keys_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/teams","hooks_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/hooks","issue_events_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/events{/number}","events_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/events","assignees_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/assignees{/user}","branches_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/branches{/branch}","tags_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/tags","blobs_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/statuses/{sha}","languages_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/languages","stargazers_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/stargazers","contributors_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/contributors","subscribers_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/subscribers","subscription_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/subscription","commits_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/contents/{+path}","compare_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/merges","archive_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/downloads","issues_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues{/number}","pulls_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls{/number}","milestones_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/milestones{/number}","notifications_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/labels{/name}","releases_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/releases{/id}","deployments_url":"https://api.github.com/repos/ArekSredzki/electron-release-server/deployments","created_at":"2016-02-28T10:06:53Z","updated_at":"2016-10-12T08:05:08Z","pushed_at":"2016-09-24T06:02:23Z","git_url":"git://github.com/ArekSredzki/electron-release-server.git","ssh_url":"git@github.com:ArekSredzki/electron-release-server.git","clone_url":"https://github.com/ArekSredzki/electron-release-server.git","svn_url":"https://github.com/ArekSredzki/electron-release-server","homepage":"","size":172,"stargazers_count":305,"watchers_count":305,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":9,"forks":80,"open_issues":9,"watchers":305,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78"},"html":{"href":"https://github.com/ArekSredzki/electron-release-server/pull/78"},"issue":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/78"},"comments":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/ArekSredzki/electron-release-server/statuses/cc80d00e5cf0228df8f4b66ed01b62e3d7b1f268"}}}}
{"actor":{"display_login":"ArekSredzki"}}