{"action":"opened","number":240,"pull_request":{"url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240","id":78353036,"html_url":"https://github.com/PokeAPI/pokeapi/pull/240","diff_url":"https://github.com/PokeAPI/pokeapi/pull/240.diff","patch_url":"https://github.com/PokeAPI/pokeapi/pull/240.patch","issue_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240","number":240,"state":"open","locked":false,"title":"Nginx 4cpu configuration","user":{"login":"Naramsim","id":8996268,"avatar_url":"https://avatars.githubusercontent.com/u/8996268?v=3","gravatar_id":"","url":"https://api.github.com/users/Naramsim","html_url":"https://github.com/Naramsim","followers_url":"https://api.github.com/users/Naramsim/followers","following_url":"https://api.github.com/users/Naramsim/following{/other_user}","gists_url":"https://api.github.com/users/Naramsim/gists{/gist_id}","starred_url":"https://api.github.com/users/Naramsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naramsim/subscriptions","organizations_url":"https://api.github.com/users/Naramsim/orgs","repos_url":"https://api.github.com/users/Naramsim/repos","events_url":"https://api.github.com/users/Naramsim/events{/privacy}","received_events_url":"https://api.github.com/users/Naramsim/received_events","type":"User","site_admin":false},"body":"Since @phalt once said that the Pokeapi machine is an 80$ droplet this means that it has 4 CPUs. [DigitalOcean link](https://www.digitalocean.com/pricing/).\r\n\r\nThis means that the current Nginx installation is not working at its full potential.\r\n\r\nThis PR will let Nginx\r\n* use 4 processors \r\n* handle requests in RAM instead of writing them on HDD\r\n* gzip content before sending it (JSONs, when zipped, are lot lighter)\r\n* cache static content for 3 months (static === Pokeapi website, not API)\r\n* cache JSON responses for 1 minute (Pokemon data does not change very often)\r\n\r\n### Note\r\nI need some tester since I am on Windows. I've only tested if Nginx starts correctly, and it does. But I haven't tested it while Pokeapi running.","created_at":"2016-07-21T17:10:39Z","updated_at":"2016-07-21T17:10:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240/commits","review_comments_url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240/comments","review_comment_url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240/comments","statuses_url":"https://api.github.com/repos/PokeAPI/pokeapi/statuses/6feed7e73acf024e7b6313e0c904837b377c40cd","head":{"label":"Naramsim:patch-1","ref":"patch-1","sha":"6feed7e73acf024e7b6313e0c904837b377c40cd","user":{"login":"Naramsim","id":8996268,"avatar_url":"https://avatars.githubusercontent.com/u/8996268?v=3","gravatar_id":"","url":"https://api.github.com/users/Naramsim","html_url":"https://github.com/Naramsim","followers_url":"https://api.github.com/users/Naramsim/followers","following_url":"https://api.github.com/users/Naramsim/following{/other_user}","gists_url":"https://api.github.com/users/Naramsim/gists{/gist_id}","starred_url":"https://api.github.com/users/Naramsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naramsim/subscriptions","organizations_url":"https://api.github.com/users/Naramsim/orgs","repos_url":"https://api.github.com/users/Naramsim/repos","events_url":"https://api.github.com/users/Naramsim/events{/privacy}","received_events_url":"https://api.github.com/users/Naramsim/received_events","type":"User","site_admin":false},"repo":{"id":62807182,"name":"pokeapi","full_name":"Naramsim/pokeapi","owner":{"login":"Naramsim","id":8996268,"avatar_url":"https://avatars.githubusercontent.com/u/8996268?v=3","gravatar_id":"","url":"https://api.github.com/users/Naramsim","html_url":"https://github.com/Naramsim","followers_url":"https://api.github.com/users/Naramsim/followers","following_url":"https://api.github.com/users/Naramsim/following{/other_user}","gists_url":"https://api.github.com/users/Naramsim/gists{/gist_id}","starred_url":"https://api.github.com/users/Naramsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naramsim/subscriptions","organizations_url":"https://api.github.com/users/Naramsim/orgs","repos_url":"https://api.github.com/users/Naramsim/repos","events_url":"https://api.github.com/users/Naramsim/events{/privacy}","received_events_url":"https://api.github.com/users/Naramsim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Naramsim/pokeapi","description":"The code behind PokeAPI","fork":true,"url":"https://api.github.com/repos/Naramsim/pokeapi","forks_url":"https://api.github.com/repos/Naramsim/pokeapi/forks","keys_url":"https://api.github.com/repos/Naramsim/pokeapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Naramsim/pokeapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Naramsim/pokeapi/teams","hooks_url":"https://api.github.com/repos/Naramsim/pokeapi/hooks","issue_events_url":"https://api.github.com/repos/Naramsim/pokeapi/issues/events{/number}","events_url":"https://api.github.com/repos/Naramsim/pokeapi/events","assignees_url":"https://api.github.com/repos/Naramsim/pokeapi/assignees{/user}","branches_url":"https://api.github.com/repos/Naramsim/pokeapi/branches{/branch}","tags_url":"https://api.github.com/repos/Naramsim/pokeapi/tags","blobs_url":"https://api.github.com/repos/Naramsim/pokeapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Naramsim/pokeapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Naramsim/pokeapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Naramsim/pokeapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Naramsim/pokeapi/statuses/{sha}","languages_url":"https://api.github.com/repos/Naramsim/pokeapi/languages","stargazers_url":"https://api.github.com/repos/Naramsim/pokeapi/stargazers","contributors_url":"https://api.github.com/repos/Naramsim/pokeapi/contributors","subscribers_url":"https://api.github.com/repos/Naramsim/pokeapi/subscribers","subscription_url":"https://api.github.com/repos/Naramsim/pokeapi/subscription","commits_url":"https://api.github.com/repos/Naramsim/pokeapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Naramsim/pokeapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Naramsim/pokeapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Naramsim/pokeapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Naramsim/pokeapi/contents/{+path}","compare_url":"https://api.github.com/repos/Naramsim/pokeapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Naramsim/pokeapi/merges","archive_url":"https://api.github.com/repos/Naramsim/pokeapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Naramsim/pokeapi/downloads","issues_url":"https://api.github.com/repos/Naramsim/pokeapi/issues{/number}","pulls_url":"https://api.github.com/repos/Naramsim/pokeapi/pulls{/number}","milestones_url":"https://api.github.com/repos/Naramsim/pokeapi/milestones{/number}","notifications_url":"https://api.github.com/repos/Naramsim/pokeapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Naramsim/pokeapi/labels{/name}","releases_url":"https://api.github.com/repos/Naramsim/pokeapi/releases{/id}","deployments_url":"https://api.github.com/repos/Naramsim/pokeapi/deployments","created_at":"2016-07-07T13:02:51Z","updated_at":"2016-07-07T13:02:57Z","pushed_at":"2016-07-21T16:58:56Z","git_url":"git://github.com/Naramsim/pokeapi.git","ssh_url":"git@github.com:Naramsim/pokeapi.git","clone_url":"https://github.com/Naramsim/pokeapi.git","svn_url":"https://github.com/Naramsim/pokeapi","homepage":"http://phalt.co/pokeapi-v2/","size":13583,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"PokeAPI:master","ref":"master","sha":"7e78458e374eb35f304df4fdaf2aebe81a7b6c13","user":{"login":"PokeAPI","id":19692032,"avatar_url":"https://avatars.githubusercontent.com/u/19692032?v=3","gravatar_id":"","url":"https://api.github.com/users/PokeAPI","html_url":"https://github.com/PokeAPI","followers_url":"https://api.github.com/users/PokeAPI/followers","following_url":"https://api.github.com/users/PokeAPI/following{/other_user}","gists_url":"https://api.github.com/users/PokeAPI/gists{/gist_id}","starred_url":"https://api.github.com/users/PokeAPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokeAPI/subscriptions","organizations_url":"https://api.github.com/users/PokeAPI/orgs","repos_url":"https://api.github.com/users/PokeAPI/repos","events_url":"https://api.github.com/users/PokeAPI/events{/privacy}","received_events_url":"https://api.github.com/users/PokeAPI/received_events","type":"Organization","site_admin":false},"repo":{"id":27534934,"name":"pokeapi","full_name":"PokeAPI/pokeapi","owner":{"login":"PokeAPI","id":19692032,"avatar_url":"https://avatars.githubusercontent.com/u/19692032?v=3","gravatar_id":"","url":"https://api.github.com/users/PokeAPI","html_url":"https://github.com/PokeAPI","followers_url":"https://api.github.com/users/PokeAPI/followers","following_url":"https://api.github.com/users/PokeAPI/following{/other_user}","gists_url":"https://api.github.com/users/PokeAPI/gists{/gist_id}","starred_url":"https://api.github.com/users/PokeAPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokeAPI/subscriptions","organizations_url":"https://api.github.com/users/PokeAPI/orgs","repos_url":"https://api.github.com/users/PokeAPI/repos","events_url":"https://api.github.com/users/PokeAPI/events{/privacy}","received_events_url":"https://api.github.com/users/PokeAPI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PokeAPI/pokeapi","description":"The code behind PokeAPI","fork":false,"url":"https://api.github.com/repos/PokeAPI/pokeapi","forks_url":"https://api.github.com/repos/PokeAPI/pokeapi/forks","keys_url":"https://api.github.com/repos/PokeAPI/pokeapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PokeAPI/pokeapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PokeAPI/pokeapi/teams","hooks_url":"https://api.github.com/repos/PokeAPI/pokeapi/hooks","issue_events_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/events{/number}","events_url":"https://api.github.com/repos/PokeAPI/pokeapi/events","assignees_url":"https://api.github.com/repos/PokeAPI/pokeapi/assignees{/user}","branches_url":"https://api.github.com/repos/PokeAPI/pokeapi/branches{/branch}","tags_url":"https://api.github.com/repos/PokeAPI/pokeapi/tags","blobs_url":"https://api.github.com/repos/PokeAPI/pokeapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PokeAPI/pokeapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PokeAPI/pokeapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/PokeAPI/pokeapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PokeAPI/pokeapi/statuses/{sha}","languages_url":"https://api.github.com/repos/PokeAPI/pokeapi/languages","stargazers_url":"https://api.github.com/repos/PokeAPI/pokeapi/stargazers","contributors_url":"https://api.github.com/repos/PokeAPI/pokeapi/contributors","subscribers_url":"https://api.github.com/repos/PokeAPI/pokeapi/subscribers","subscription_url":"https://api.github.com/repos/PokeAPI/pokeapi/subscription","commits_url":"https://api.github.com/repos/PokeAPI/pokeapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/PokeAPI/pokeapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/PokeAPI/pokeapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/PokeAPI/pokeapi/contents/{+path}","compare_url":"https://api.github.com/repos/PokeAPI/pokeapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PokeAPI/pokeapi/merges","archive_url":"https://api.github.com/repos/PokeAPI/pokeapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PokeAPI/pokeapi/downloads","issues_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues{/number}","pulls_url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls{/number}","milestones_url":"https://api.github.com/repos/PokeAPI/pokeapi/milestones{/number}","notifications_url":"https://api.github.com/repos/PokeAPI/pokeapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PokeAPI/pokeapi/labels{/name}","releases_url":"https://api.github.com/repos/PokeAPI/pokeapi/releases{/id}","deployments_url":"https://api.github.com/repos/PokeAPI/pokeapi/deployments","created_at":"2014-12-04T10:17:17Z","updated_at":"2016-07-21T13:59:10Z","pushed_at":"2016-07-21T10:13:10Z","git_url":"git://github.com/PokeAPI/pokeapi.git","ssh_url":"git@github.com:PokeAPI/pokeapi.git","clone_url":"https://github.com/PokeAPI/pokeapi.git","svn_url":"https://github.com/PokeAPI/pokeapi","homepage":"http://phalt.co/pokeapi-v2/","size":20148,"stargazers_count":645,"watchers_count":645,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":18,"forks":119,"open_issues":18,"watchers":645,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240"},"html":{"href":"https://github.com/PokeAPI/pokeapi/pull/240"},"issue":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240"},"comments":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240/comments"},"review_comments":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240/comments"},"review_comment":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240/commits"},"statuses":{"href":"https://api.github.com/repos/PokeAPI/pokeapi/statuses/6feed7e73acf024e7b6313e0c904837b377c40cd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":32,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"Naramsim"}}