{"action":"created","issue":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/116","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/116/comments","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/116/events","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/116","id":58756715,"number":116,"title":"Nginx: Add IA for nginx confuguration directives","user":{"login":"pfirsichbluete","id":11176073,"avatar_url":"https://avatars.githubusercontent.com/u/11176073?v=3","gravatar_id":"","url":"https://api.github.com/users/pfirsichbluete","html_url":"https://github.com/pfirsichbluete","followers_url":"https://api.github.com/users/pfirsichbluete/followers","following_url":"https://api.github.com/users/pfirsichbluete/following{/other_user}","gists_url":"https://api.github.com/users/pfirsichbluete/gists{/gist_id}","starred_url":"https://api.github.com/users/pfirsichbluete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfirsichbluete/subscriptions","organizations_url":"https://api.github.com/users/pfirsichbluete/orgs","repos_url":"https://api.github.com/users/pfirsichbluete/repos","events_url":"https://api.github.com/users/pfirsichbluete/events{/privacy}","received_events_url":"https://api.github.com/users/pfirsichbluete/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/Needs%20Community%20Review","name":"Needs Community Review","color":"bfe5bf"},{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/New%20Instant%20Answer","name":"New Instant Answer","color":"02d7e1"}],"state":"open","locked":false,"assignee":{"login":"jdorweiler","id":1882892,"avatar_url":"https://avatars.githubusercontent.com/u/1882892?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorweiler","html_url":"https://github.com/jdorweiler","followers_url":"https://api.github.com/users/jdorweiler/followers","following_url":"https://api.github.com/users/jdorweiler/following{/other_user}","gists_url":"https://api.github.com/users/jdorweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorweiler/subscriptions","organizations_url":"https://api.github.com/users/jdorweiler/orgs","repos_url":"https://api.github.com/users/jdorweiler/repos","events_url":"https://api.github.com/users/jdorweiler/events{/privacy}","received_events_url":"https://api.github.com/users/jdorweiler/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-24T15:44:14Z","updated_at":"2015-02-27T22:09:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/pulls/116","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/116","diff_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/116.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/116.patch"},"body":"**What does your Instant Answer do?**\r\n\r\nThe IA adds nginx configuration directives.\r\n\r\n**What problem does your Instant Answer solve (Why is it better than organic links)?**\r\n\r\nIt shows the authorative answer right on the first page without need\r\nfor clicking. Also the “More at” takes you to the relevant anchor\r\ndirectly.\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\n\r\nThe mercurial repository at\r\n\r\n  http://hg.nginx.org/nginx.org\r\n\r\n**Why did you choose this data source?**\r\n\r\nThe alternatives would be to parse the nginx html documentation, or\r\nfetch the xml sources from somewhere else.\r\n\r\nParsing the nginx html documentation seemed rather fragile, as html\r\nchanges from time to time. And each time the nginx html documentation\r\nupdates, one would have to also update the scripts to parse\r\nthem. That'd only be tech debt from the start.\r\n\r\nFetching the nginx documentation's xml sources from somewhere else\r\nwould be possible. But their trac forbids fetching through robots.txt,\r\nand fetching through the repo's http pages at\r\nhttp://hg.nginx.org/nginx.org/raw-file/default/xml/en/docs/http\r\nturned out to be twice as slow as cloning the whole repo.\r\n\r\nHence, I chose to clone the whole repo, as the repo is small anyways.\r\n\r\n**Are there any other alternative (better) data sources?**\r\n\r\nI am not aware of any.\r\n\r\n**What are some example queries that trigger this Instant Answer?**\r\n\r\nnginx access_log\r\nnginx fastcgi_connect_timeout\r\nnginx fastcgi_ignore_client_abort\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\n\r\nServer administrators, Devops\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**\r\n\r\nYes.\r\n\r\nhttps://duck.co/ideas/idea/4795/nginx-instant-answers\r\n\r\n**Which existing Instant Answers will this one supercede/overlap with?**\r\n\r\nI am not aware of any.\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\n\r\nThe docs say to not include output.txt >=1MB.\r\nThis IA's current output.txt is 100KB, hence I included it.\r\n\r\nAlso, I am having a hard time to test the output.txt, as duckpan does\r\nnot work with fatheads :-/\r\n\r\n**Where did you hear about DuckDuckHack? (For first time contributors)**\r\n\r\nI saw it on a friend's list of forked repos.\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n\r\nduckpan does not allow to test fatheads :-(\r\n\r\n## Checklist\r\nPlease place an 'X' where appropriate.\r\n\r\n```\r\n[X] Added metadata and attribution information\r\n[] Wrote test file and added to t/ directory\r\n^ not sure how to do that for fatheads\r\n[X] Verified that Instant Answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)\r\n[X] Verified that Instant Answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)\r\n[] Tested cross-browser compatibility\r\n^ not sure how to do that given that duckpan does not support fatheads\r\n    Please let us know which browsers/devices you've tested on:\r\n    - Windows 8\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] IE 10\r\n\r\n    - Windows 7\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] IE 8\r\n        [] IE 9\r\n        [] IE 10\r\n\r\n    - Windows XP\r\n        [] IE 7\r\n        [] IE 8\r\n\r\n    - Mac OSX\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] Safari\r\n\r\n    - iOS (iPhone)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - iOS (iPad)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - Android\r\n        [] Firefox\r\n        [] Native Browser\r\n        [] Google Chrome\r\n        [] Opera\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/comments/76481539","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/116#issuecomment-76481539","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/116","id":76481539,"user":{"login":"jdorweiler","id":1882892,"avatar_url":"https://avatars.githubusercontent.com/u/1882892?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorweiler","html_url":"https://github.com/jdorweiler","followers_url":"https://api.github.com/users/jdorweiler/followers","following_url":"https://api.github.com/users/jdorweiler/following{/other_user}","gists_url":"https://api.github.com/users/jdorweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorweiler/subscriptions","organizations_url":"https://api.github.com/users/jdorweiler/orgs","repos_url":"https://api.github.com/users/jdorweiler/repos","events_url":"https://api.github.com/users/jdorweiler/events{/privacy}","received_events_url":"https://api.github.com/users/jdorweiler/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T22:09:43Z","updated_at":"2015-02-27T22:09:43Z","body":"@pfirsichbluete could you remove the `|` from some of the entries and could you replace the `<br>` in the code blocks with `\\n`?"}}