{"action":"created","issue":{"url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240","repository_url":"https://api.github.com/repos/PokeAPI/pokeapi","labels_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240/comments","events_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240/events","html_url":"https://github.com/PokeAPI/pokeapi/pull/240","id":166870979,"number":240,"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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-21T17:10:39Z","updated_at":"2016-07-22T13:47:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PokeAPI/pokeapi/pulls/240","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"},"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."},"comment":{"url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/comments/234548132","html_url":"https://github.com/PokeAPI/pokeapi/pull/240#issuecomment-234548132","issue_url":"https://api.github.com/repos/PokeAPI/pokeapi/issues/240","id":234548132,"user":{"login":"sargunster","id":1320357,"avatar_url":"https://avatars.githubusercontent.com/u/1320357?v=3","gravatar_id":"","url":"https://api.github.com/users/sargunster","html_url":"https://github.com/sargunster","followers_url":"https://api.github.com/users/sargunster/followers","following_url":"https://api.github.com/users/sargunster/following{/other_user}","gists_url":"https://api.github.com/users/sargunster/gists{/gist_id}","starred_url":"https://api.github.com/users/sargunster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sargunster/subscriptions","organizations_url":"https://api.github.com/users/sargunster/orgs","repos_url":"https://api.github.com/users/sargunster/repos","events_url":"https://api.github.com/users/sargunster/events{/privacy}","received_events_url":"https://api.github.com/users/sargunster/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T13:47:01Z","updated_at":"2016-07-22T13:47:01Z","body":"Something similar to fix the caching issue, yeah. Adapt it for this situation (may not need the header, may not want to cache 404, may not want to change the key, etc). The main thing is to setup caching for anything under `/api`, regardless of extension."}}
{"actor":{"display_login":"sargunster"}}