{"action":"created","comment":{"url":"https://api.github.com/repos/wpengine/hgv/pulls/comments/33512919","id":33512919,"diff_hunk":"@@ -1,6 +1,6 @@\n {\"{{ item }}1\": {\n-        \"display\" : \"{{ enviro }} {{ backend }} Access Log\",\n-        \"path\"    : \"\\/var\\/log\\/nginx\\/{{ enviro }}-{{ backend }}.apachestyle.access.log\",","path":"provisioning/roles/wordpress/templates/pimpmylog.json","position":3,"original_position":3,"commit_id":"62d41e1054784c5853e15fb675b883bb4f4bc4f2","original_commit_id":"62d41e1054784c5853e15fb675b883bb4f4bc4f2","user":{"login":"markkelnar","id":749603,"avatar_url":"https://avatars.githubusercontent.com/u/749603?v=3","gravatar_id":"","url":"https://api.github.com/users/markkelnar","html_url":"https://github.com/markkelnar","followers_url":"https://api.github.com/users/markkelnar/followers","following_url":"https://api.github.com/users/markkelnar/following{/other_user}","gists_url":"https://api.github.com/users/markkelnar/gists{/gist_id}","starred_url":"https://api.github.com/users/markkelnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markkelnar/subscriptions","organizations_url":"https://api.github.com/users/markkelnar/orgs","repos_url":"https://api.github.com/users/markkelnar/repos","events_url":"https://api.github.com/users/markkelnar/events{/privacy}","received_events_url":"https://api.github.com/users/markkelnar/received_events","type":"User","site_admin":false},"body":"I changed the PimpMyLog config to match the Nginx log file.  And added a 'domain' column.  This domain helps since we can have more than one domain accessing the same backend WP and reported in the Nginx logs.","created_at":"2015-06-29T21:02:20Z","updated_at":"2015-06-29T21:02:20Z","html_url":"https://github.com/wpengine/hgv/pull/187#discussion_r33512919","pull_request_url":"https://api.github.com/repos/wpengine/hgv/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/comments/33512919"},"html":{"href":"https://github.com/wpengine/hgv/pull/187#discussion_r33512919"},"pull_request":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/wpengine/hgv/pulls/187","id":38811832,"html_url":"https://github.com/wpengine/hgv/pull/187","diff_url":"https://github.com/wpengine/hgv/pull/187.diff","patch_url":"https://github.com/wpengine/hgv/pull/187.patch","issue_url":"https://api.github.com/repos/wpengine/hgv/issues/187","number":187,"state":"open","locked":false,"title":"Refactor to use nginx maps to associate domains to backend","user":{"login":"markkelnar","id":749603,"avatar_url":"https://avatars.githubusercontent.com/u/749603?v=3","gravatar_id":"","url":"https://api.github.com/users/markkelnar","html_url":"https://github.com/markkelnar","followers_url":"https://api.github.com/users/markkelnar/followers","following_url":"https://api.github.com/users/markkelnar/following{/other_user}","gists_url":"https://api.github.com/users/markkelnar/gists{/gist_id}","starred_url":"https://api.github.com/users/markkelnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markkelnar/subscriptions","organizations_url":"https://api.github.com/users/markkelnar/orgs","repos_url":"https://api.github.com/users/markkelnar/repos","events_url":"https://api.github.com/users/markkelnar/events{/privacy}","received_events_url":"https://api.github.com/users/markkelnar/received_events","type":"User","site_admin":false},"body":"@zamoose here's my take on combining the Nginx config files for a domain and it's backend listeners into one file.\r\n\r\nCreates one file for the WP and all it's domains and cache.domains at /etc/nginx/conf.d/www-foo.conf, where foo is the docroot/enviro of the WP.\r\n\r\nUses Nginx map http://nginx.org/en/docs/http/ngx_http_map_module.html to put a value in the nginx variable '$upstream_target_foo' where foo is the docroot/enviro set of domains for the WP.\r\n\r\nWhere it looks like I removed that wordpress.conf template file, I moved it from that listener role into the wordpress role and added more stuff to it there.\r\n\r\nFixes: https://github.com/wpengine/hgv/issues/158\r\n","created_at":"2015-06-29T20:06:54Z","updated_at":"2015-06-29T21:02:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2904b68ade2973b8498b1a153ba87b589727f4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wpengine/hgv/pulls/187/commits","review_comments_url":"https://api.github.com/repos/wpengine/hgv/pulls/187/comments","review_comment_url":"https://api.github.com/repos/wpengine/hgv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wpengine/hgv/issues/187/comments","statuses_url":"https://api.github.com/repos/wpengine/hgv/statuses/62d41e1054784c5853e15fb675b883bb4f4bc4f2","head":{"label":"markkelnar:enhance/nginx-configs","ref":"enhance/nginx-configs","sha":"62d41e1054784c5853e15fb675b883bb4f4bc4f2","user":{"login":"markkelnar","id":749603,"avatar_url":"https://avatars.githubusercontent.com/u/749603?v=3","gravatar_id":"","url":"https://api.github.com/users/markkelnar","html_url":"https://github.com/markkelnar","followers_url":"https://api.github.com/users/markkelnar/followers","following_url":"https://api.github.com/users/markkelnar/following{/other_user}","gists_url":"https://api.github.com/users/markkelnar/gists{/gist_id}","starred_url":"https://api.github.com/users/markkelnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markkelnar/subscriptions","organizations_url":"https://api.github.com/users/markkelnar/orgs","repos_url":"https://api.github.com/users/markkelnar/repos","events_url":"https://api.github.com/users/markkelnar/events{/privacy}","received_events_url":"https://api.github.com/users/markkelnar/received_events","type":"User","site_admin":false},"repo":{"id":29260509,"name":"hgv","full_name":"markkelnar/hgv","owner":{"login":"markkelnar","id":749603,"avatar_url":"https://avatars.githubusercontent.com/u/749603?v=3","gravatar_id":"","url":"https://api.github.com/users/markkelnar","html_url":"https://github.com/markkelnar","followers_url":"https://api.github.com/users/markkelnar/followers","following_url":"https://api.github.com/users/markkelnar/following{/other_user}","gists_url":"https://api.github.com/users/markkelnar/gists{/gist_id}","starred_url":"https://api.github.com/users/markkelnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markkelnar/subscriptions","organizations_url":"https://api.github.com/users/markkelnar/orgs","repos_url":"https://api.github.com/users/markkelnar/repos","events_url":"https://api.github.com/users/markkelnar/events{/privacy}","received_events_url":"https://api.github.com/users/markkelnar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markkelnar/hgv","description":"WP Engine's Mercury vagrant environment","fork":true,"url":"https://api.github.com/repos/markkelnar/hgv","forks_url":"https://api.github.com/repos/markkelnar/hgv/forks","keys_url":"https://api.github.com/repos/markkelnar/hgv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markkelnar/hgv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markkelnar/hgv/teams","hooks_url":"https://api.github.com/repos/markkelnar/hgv/hooks","issue_events_url":"https://api.github.com/repos/markkelnar/hgv/issues/events{/number}","events_url":"https://api.github.com/repos/markkelnar/hgv/events","assignees_url":"https://api.github.com/repos/markkelnar/hgv/assignees{/user}","branches_url":"https://api.github.com/repos/markkelnar/hgv/branches{/branch}","tags_url":"https://api.github.com/repos/markkelnar/hgv/tags","blobs_url":"https://api.github.com/repos/markkelnar/hgv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markkelnar/hgv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markkelnar/hgv/git/refs{/sha}","trees_url":"https://api.github.com/repos/markkelnar/hgv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markkelnar/hgv/statuses/{sha}","languages_url":"https://api.github.com/repos/markkelnar/hgv/languages","stargazers_url":"https://api.github.com/repos/markkelnar/hgv/stargazers","contributors_url":"https://api.github.com/repos/markkelnar/hgv/contributors","subscribers_url":"https://api.github.com/repos/markkelnar/hgv/subscribers","subscription_url":"https://api.github.com/repos/markkelnar/hgv/subscription","commits_url":"https://api.github.com/repos/markkelnar/hgv/commits{/sha}","git_commits_url":"https://api.github.com/repos/markkelnar/hgv/git/commits{/sha}","comments_url":"https://api.github.com/repos/markkelnar/hgv/comments{/number}","issue_comment_url":"https://api.github.com/repos/markkelnar/hgv/issues/comments{/number}","contents_url":"https://api.github.com/repos/markkelnar/hgv/contents/{+path}","compare_url":"https://api.github.com/repos/markkelnar/hgv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markkelnar/hgv/merges","archive_url":"https://api.github.com/repos/markkelnar/hgv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markkelnar/hgv/downloads","issues_url":"https://api.github.com/repos/markkelnar/hgv/issues{/number}","pulls_url":"https://api.github.com/repos/markkelnar/hgv/pulls{/number}","milestones_url":"https://api.github.com/repos/markkelnar/hgv/milestones{/number}","notifications_url":"https://api.github.com/repos/markkelnar/hgv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markkelnar/hgv/labels{/name}","releases_url":"https://api.github.com/repos/markkelnar/hgv/releases{/id}","created_at":"2015-01-14T19:02:59Z","updated_at":"2015-01-15T02:31:08Z","pushed_at":"2015-06-29T20:59:19Z","git_url":"git://github.com/markkelnar/hgv.git","ssh_url":"git@github.com:markkelnar/hgv.git","clone_url":"https://github.com/markkelnar/hgv.git","svn_url":"https://github.com/markkelnar/hgv","homepage":"http://merc.wpengine.com","size":791,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"wpengine:develop","ref":"develop","sha":"0506d611945b795f388e32946b4514d15b94b47f","user":{"login":"wpengine","id":749191,"avatar_url":"https://avatars.githubusercontent.com/u/749191?v=3","gravatar_id":"","url":"https://api.github.com/users/wpengine","html_url":"https://github.com/wpengine","followers_url":"https://api.github.com/users/wpengine/followers","following_url":"https://api.github.com/users/wpengine/following{/other_user}","gists_url":"https://api.github.com/users/wpengine/gists{/gist_id}","starred_url":"https://api.github.com/users/wpengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpengine/subscriptions","organizations_url":"https://api.github.com/users/wpengine/orgs","repos_url":"https://api.github.com/users/wpengine/repos","events_url":"https://api.github.com/users/wpengine/events{/privacy}","received_events_url":"https://api.github.com/users/wpengine/received_events","type":"Organization","site_admin":false},"repo":{"id":28054492,"name":"hgv","full_name":"wpengine/hgv","owner":{"login":"wpengine","id":749191,"avatar_url":"https://avatars.githubusercontent.com/u/749191?v=3","gravatar_id":"","url":"https://api.github.com/users/wpengine","html_url":"https://github.com/wpengine","followers_url":"https://api.github.com/users/wpengine/followers","following_url":"https://api.github.com/users/wpengine/following{/other_user}","gists_url":"https://api.github.com/users/wpengine/gists{/gist_id}","starred_url":"https://api.github.com/users/wpengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpengine/subscriptions","organizations_url":"https://api.github.com/users/wpengine/orgs","repos_url":"https://api.github.com/users/wpengine/repos","events_url":"https://api.github.com/users/wpengine/events{/privacy}","received_events_url":"https://api.github.com/users/wpengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wpengine/hgv","description":"WP Engine's Mercury vagrant environment","fork":false,"url":"https://api.github.com/repos/wpengine/hgv","forks_url":"https://api.github.com/repos/wpengine/hgv/forks","keys_url":"https://api.github.com/repos/wpengine/hgv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wpengine/hgv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wpengine/hgv/teams","hooks_url":"https://api.github.com/repos/wpengine/hgv/hooks","issue_events_url":"https://api.github.com/repos/wpengine/hgv/issues/events{/number}","events_url":"https://api.github.com/repos/wpengine/hgv/events","assignees_url":"https://api.github.com/repos/wpengine/hgv/assignees{/user}","branches_url":"https://api.github.com/repos/wpengine/hgv/branches{/branch}","tags_url":"https://api.github.com/repos/wpengine/hgv/tags","blobs_url":"https://api.github.com/repos/wpengine/hgv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wpengine/hgv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wpengine/hgv/git/refs{/sha}","trees_url":"https://api.github.com/repos/wpengine/hgv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wpengine/hgv/statuses/{sha}","languages_url":"https://api.github.com/repos/wpengine/hgv/languages","stargazers_url":"https://api.github.com/repos/wpengine/hgv/stargazers","contributors_url":"https://api.github.com/repos/wpengine/hgv/contributors","subscribers_url":"https://api.github.com/repos/wpengine/hgv/subscribers","subscription_url":"https://api.github.com/repos/wpengine/hgv/subscription","commits_url":"https://api.github.com/repos/wpengine/hgv/commits{/sha}","git_commits_url":"https://api.github.com/repos/wpengine/hgv/git/commits{/sha}","comments_url":"https://api.github.com/repos/wpengine/hgv/comments{/number}","issue_comment_url":"https://api.github.com/repos/wpengine/hgv/issues/comments{/number}","contents_url":"https://api.github.com/repos/wpengine/hgv/contents/{+path}","compare_url":"https://api.github.com/repos/wpengine/hgv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wpengine/hgv/merges","archive_url":"https://api.github.com/repos/wpengine/hgv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wpengine/hgv/downloads","issues_url":"https://api.github.com/repos/wpengine/hgv/issues{/number}","pulls_url":"https://api.github.com/repos/wpengine/hgv/pulls{/number}","milestones_url":"https://api.github.com/repos/wpengine/hgv/milestones{/number}","notifications_url":"https://api.github.com/repos/wpengine/hgv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wpengine/hgv/labels{/name}","releases_url":"https://api.github.com/repos/wpengine/hgv/releases{/id}","created_at":"2014-12-15T20:22:40Z","updated_at":"2015-06-26T17:43:43Z","pushed_at":"2015-06-29T20:59:20Z","git_url":"git://github.com/wpengine/hgv.git","ssh_url":"git@github.com:wpengine/hgv.git","clone_url":"https://github.com/wpengine/hgv.git","svn_url":"https://github.com/wpengine/hgv","homepage":"http://wpengine.com/mercury","size":1615,"stargazers_count":197,"watchers_count":197,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":28,"forks":32,"open_issues":28,"watchers":197,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/187"},"html":{"href":"https://github.com/wpengine/hgv/pull/187"},"issue":{"href":"https://api.github.com/repos/wpengine/hgv/issues/187"},"comments":{"href":"https://api.github.com/repos/wpengine/hgv/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wpengine/hgv/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/wpengine/hgv/statuses/62d41e1054784c5853e15fb675b883bb4f4bc4f2"}}}}