{"action":"created","comment":{"url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/comments/50005104","id":50005104,"diff_hunk":"@@ -0,0 +1,76 @@\n+upstream lucene {\n+    keepalive 256;\n+\n+    # jetty #\n+    # dora\n+    server 10.1.1.21:8081 weight=16 max_fails=10 fail_timeout=10s;\n+    # roobarb\n+    server 10.1.1.22:8081 weight=16 max_fails=10 fail_timeout=10s;\n+\n+    # tomcat #\n+    # dora\n+    # server 10.1.1.21:8080 weight=16 max_fails=10 fail_timeout=10s;\n+    # roobarb\n+    # server 10.1.1.22:8080 weight=16 max_fails=10 fail_timeout=10s;\n+}\n+\n+server {\n+    listen 127.0.0.1:777;\n+    listen 127.0.0.1:776;\n+\n+    access_log /var/log/nginx/search-private-access.log proxylog;\n+    access_log /var/log/nginx/search-private-combined.log combined;\n+    error_log /var/log/nginx/search-private-error.log notice;\n+\n+    # Default is mb_full_server etc\n+    proxy_set_header Host $host;\n+\n+    # Replaces any existing header of this name\n+    proxy_set_header X-MB-Remote-Addr $remote_addr;\n+\n+    # Pass through response header, instead of supplying our own\n+    proxy_pass_header Server;\n+\n+    # Block response headers (from upstream, or self?)\n+    # proxy_hide_header Via;\n+\n+    proxy_connect_timeout 3;\n+    proxy_read_timeout 5;\n+    proxy_next_upstream error timeout invalid_header;\n+\n+    # enable proxy buffering to cut down on noise in the log\n+    proxy_buffer_size 8k;\n+    proxy_buffering on;\n+    proxy_buffers 64 8k;\n+\n+    proxy_http_version 1.1;\n+    proxy_set_header Connection \"\";\n+\n+# FIXME\n+#    location /.proxy/ {\n+#        root /usr/local/nginx/htdocs;\n+#        allow all;\n+#        expires 24h;\n+#    }\n+#\n+#    error_page 401 /.proxy/401.html;\n+#    error_page 403 /.proxy/403.html;\n+#    error_page 404 /.proxy/404.html;\n+#    error_page 502 /.proxy/502.html;\n+#    error_page 503 /.proxy/503.html;\n+#    error_page 504 /.proxy/504.html;\n+#\n+    location / {\n+        # error_page 503 /.proxy/503-downtime.html;\n+        # return 503;\n+        proxy_pass http://lucene;\n+        proxy_redirect off;\n+    }\n+\n+    # Copying http://wiki.codemongers.com/NginxFullExample2\n+    client_header_timeout  3m;\n+    client_body_timeout    3m;\n+    send_timeout           3m;\n+\n+    keepalive_timeout 75 20;","path":"musicbrainz-server/templates/default/privatesearch.conf.erb","position":75,"original_position":75,"commit_id":"8f6c1793859fbd00f10399170970802e3bf9727c","original_commit_id":"8f6c1793859fbd00f10399170970802e3bf9727c","user":{"login":"mayhem","id":49745,"avatar_url":"https://avatars.githubusercontent.com/u/49745?v=3","gravatar_id":"","url":"https://api.github.com/users/mayhem","html_url":"https://github.com/mayhem","followers_url":"https://api.github.com/users/mayhem/followers","following_url":"https://api.github.com/users/mayhem/following{/other_user}","gists_url":"https://api.github.com/users/mayhem/gists{/gist_id}","starred_url":"https://api.github.com/users/mayhem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayhem/subscriptions","organizations_url":"https://api.github.com/users/mayhem/orgs","repos_url":"https://api.github.com/users/mayhem/repos","events_url":"https://api.github.com/users/mayhem/events{/privacy}","received_events_url":"https://api.github.com/users/mayhem/received_events","type":"User","site_admin":false},"body":"nitpick: I would put this after line 47.\r\n","created_at":"2016-01-18T14:41:27Z","updated_at":"2016-01-18T14:41:27Z","html_url":"https://github.com/metabrainz/chef-cookbooks/pull/35#discussion_r50005104","pull_request_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/comments/50005104"},"html":{"href":"https://github.com/metabrainz/chef-cookbooks/pull/35#discussion_r50005104"},"pull_request":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35","id":56344623,"html_url":"https://github.com/metabrainz/chef-cookbooks/pull/35","diff_url":"https://github.com/metabrainz/chef-cookbooks/pull/35.diff","patch_url":"https://github.com/metabrainz/chef-cookbooks/pull/35.patch","issue_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/35","number":35,"state":"open","locked":false,"title":"Add nginx conf for private search, listening on 127.0.0.1","user":{"login":"zas","id":151042,"avatar_url":"https://avatars.githubusercontent.com/u/151042?v=3","gravatar_id":"","url":"https://api.github.com/users/zas","html_url":"https://github.com/zas","followers_url":"https://api.github.com/users/zas/followers","following_url":"https://api.github.com/users/zas/following{/other_user}","gists_url":"https://api.github.com/users/zas/gists{/gist_id}","starred_url":"https://api.github.com/users/zas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zas/subscriptions","organizations_url":"https://api.github.com/users/zas/orgs","repos_url":"https://api.github.com/users/zas/repos","events_url":"https://api.github.com/users/zas/events{/privacy}","received_events_url":"https://api.github.com/users/zas/received_events","type":"User","site_admin":false},"body":"Error pages aren't handled yet. Not sure how we should do it.","created_at":"2016-01-18T13:51:58Z","updated_at":"2016-01-18T14:41:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"478606130cdf112e6511b5fc987c18182be4cfbb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35/commits","review_comments_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35/comments","review_comment_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/35/comments","statuses_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/statuses/8f6c1793859fbd00f10399170970802e3bf9727c","head":{"label":"metabrainz:privatesearch","ref":"privatesearch","sha":"8f6c1793859fbd00f10399170970802e3bf9727c","user":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"repo":{"id":6411163,"name":"chef-cookbooks","full_name":"metabrainz/chef-cookbooks","owner":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metabrainz/chef-cookbooks","description":"Various Chef cookbooks for provisioning MusicBrainz","fork":false,"url":"https://api.github.com/repos/metabrainz/chef-cookbooks","forks_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/forks","keys_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/teams","hooks_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/hooks","issue_events_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/events{/number}","events_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/events","assignees_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/assignees{/user}","branches_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/branches{/branch}","tags_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/tags","blobs_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/statuses/{sha}","languages_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/languages","stargazers_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/stargazers","contributors_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/contributors","subscribers_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/subscribers","subscription_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/subscription","commits_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/contents/{+path}","compare_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/merges","archive_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/downloads","issues_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues{/number}","pulls_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls{/number}","milestones_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/milestones{/number}","notifications_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/labels{/name}","releases_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/releases{/id}","created_at":"2012-10-26T22:12:16Z","updated_at":"2016-01-14T13:20:34Z","pushed_at":"2016-01-18T13:51:59Z","git_url":"git://github.com/metabrainz/chef-cookbooks.git","ssh_url":"git@github.com:metabrainz/chef-cookbooks.git","clone_url":"https://github.com/metabrainz/chef-cookbooks.git","svn_url":"https://github.com/metabrainz/chef-cookbooks","homepage":"","size":170,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"metabrainz:master","ref":"master","sha":"ab8054d612e27403fb500858eed9544c47627b9c","user":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"repo":{"id":6411163,"name":"chef-cookbooks","full_name":"metabrainz/chef-cookbooks","owner":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metabrainz/chef-cookbooks","description":"Various Chef cookbooks for provisioning MusicBrainz","fork":false,"url":"https://api.github.com/repos/metabrainz/chef-cookbooks","forks_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/forks","keys_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/teams","hooks_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/hooks","issue_events_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/events{/number}","events_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/events","assignees_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/assignees{/user}","branches_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/branches{/branch}","tags_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/tags","blobs_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/statuses/{sha}","languages_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/languages","stargazers_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/stargazers","contributors_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/contributors","subscribers_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/subscribers","subscription_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/subscription","commits_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/contents/{+path}","compare_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/merges","archive_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/downloads","issues_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues{/number}","pulls_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls{/number}","milestones_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/milestones{/number}","notifications_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/labels{/name}","releases_url":"https://api.github.com/repos/metabrainz/chef-cookbooks/releases{/id}","created_at":"2012-10-26T22:12:16Z","updated_at":"2016-01-14T13:20:34Z","pushed_at":"2016-01-18T13:51:59Z","git_url":"git://github.com/metabrainz/chef-cookbooks.git","ssh_url":"git@github.com:metabrainz/chef-cookbooks.git","clone_url":"https://github.com/metabrainz/chef-cookbooks.git","svn_url":"https://github.com/metabrainz/chef-cookbooks","homepage":"","size":170,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35"},"html":{"href":"https://github.com/metabrainz/chef-cookbooks/pull/35"},"issue":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/35"},"comments":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/metabrainz/chef-cookbooks/statuses/8f6c1793859fbd00f10399170970802e3bf9727c"}}}}