{"action":"created","comment":{"url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/comments/61996290","id":61996290,"diff_hunk":"@@ -0,0 +1,54 @@\n+# Creating a VCL\n+As you might have seen already, this extension contains a shell script under the shell folder.\n+This script allows you to generate a vcl, ban cache for a single object and ban cache for multiple objects.\n+Using the vcl:generate command, you can generate the vcl you need for your setup.\n+The command expects the input of a config.json.\n+\n+## Defining a template file\n+A template file can be defined with the -f command.\n+\n+In this extension, the default template is the Varnish 4 template located here:\n+```\n+app/design/shell/base/default/template/ecomdev/varnish/vcl/v4/config.phtml\n+```\n+\n+When you use Varnish 3, you can use the template located here:\n+```\n+app/design/shell/base/default/template/ecomdev/varnish/vcl/v3/config.phtml\n+```\n+\n+## Defining a config file\n+A config file can be defined with the -c command.\n+\n+A complete config.json looks like this:\n+```\n+{\n+  \"backend\": {\n+    \"default_one\": {\n+      \"ip\": \"YOURIPHERE\",\n+      \"port\": \"YOURPORTHERE\",\n+      \"balanced\": true/false\n+    },\n+    \"admin\": {\n+      \"ip\": \"YOURADMINIPHERE\",\n+      \"port\": \"YOURADMINPORTHERE\",\n+      \"admin\": true,\n+      \"first_byte_timeout\": \"6000s\",\n+      \"connect_timeout\": \"6000s\"\n+    }\n+  },\n+  \"default_backend_option\": {\n+    \"first_byte_timeout\": \"30s\",\n+    \"connect_timeout\": \"5s\",\n+    \"between_bytes_timeout\": \"2s\"\n+  },\n+  \"probe_url\": \"YOURURLFORHEALTCHECKHERE\",","path":"docs/CREATING_A_VCL.md","position":45,"original_position":45,"commit_id":"f21c615deb476e7b31f2dfbdc67b3f1db2763f9b","original_commit_id":"f21c615deb476e7b31f2dfbdc67b3f1db2763f9b","user":{"login":"toonvd","id":1227745,"avatar_url":"https://avatars.githubusercontent.com/u/1227745?v=3","gravatar_id":"","url":"https://api.github.com/users/toonvd","html_url":"https://github.com/toonvd","followers_url":"https://api.github.com/users/toonvd/followers","following_url":"https://api.github.com/users/toonvd/following{/other_user}","gists_url":"https://api.github.com/users/toonvd/gists{/gist_id}","starred_url":"https://api.github.com/users/toonvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toonvd/subscriptions","organizations_url":"https://api.github.com/users/toonvd/orgs","repos_url":"https://api.github.com/users/toonvd/repos","events_url":"https://api.github.com/users/toonvd/events{/privacy}","received_events_url":"https://api.github.com/users/toonvd/received_events","type":"User","site_admin":false},"body":"Will correct this together with the completely tested v4 VCL\r\n","created_at":"2016-05-04T07:07:40Z","updated_at":"2016-05-04T07:07:40Z","html_url":"https://github.com/EcomDev/EcomDev_Varnish/pull/24#discussion_r61996290","pull_request_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/comments/61996290"},"html":{"href":"https://github.com/EcomDev/EcomDev_Varnish/pull/24#discussion_r61996290"},"pull_request":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24","id":68605085,"html_url":"https://github.com/EcomDev/EcomDev_Varnish/pull/24","diff_url":"https://github.com/EcomDev/EcomDev_Varnish/pull/24.diff","patch_url":"https://github.com/EcomDev/EcomDev_Varnish/pull/24.patch","issue_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/24","number":24,"state":"open","locked":false,"title":"Adds documentation + start V4 VCL","user":{"login":"toonvd","id":1227745,"avatar_url":"https://avatars.githubusercontent.com/u/1227745?v=3","gravatar_id":"","url":"https://api.github.com/users/toonvd","html_url":"https://github.com/toonvd","followers_url":"https://api.github.com/users/toonvd/followers","following_url":"https://api.github.com/users/toonvd/following{/other_user}","gists_url":"https://api.github.com/users/toonvd/gists{/gist_id}","starred_url":"https://api.github.com/users/toonvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toonvd/subscriptions","organizations_url":"https://api.github.com/users/toonvd/orgs","repos_url":"https://api.github.com/users/toonvd/repos","events_url":"https://api.github.com/users/toonvd/events{/privacy}","received_events_url":"https://api.github.com/users/toonvd/received_events","type":"User","site_admin":false},"body":"V4 VCL is not complete yet but documentation can be merged already","created_at":"2016-05-02T19:08:27Z","updated_at":"2016-05-04T07:07:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abaa487b705b679fb4b5d459fd298f541f817d08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24/commits","review_comments_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24/comments","review_comment_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/24/comments","statuses_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/statuses/f21c615deb476e7b31f2dfbdc67b3f1db2763f9b","head":{"label":"toonvd:develop","ref":"develop","sha":"f21c615deb476e7b31f2dfbdc67b3f1db2763f9b","user":{"login":"toonvd","id":1227745,"avatar_url":"https://avatars.githubusercontent.com/u/1227745?v=3","gravatar_id":"","url":"https://api.github.com/users/toonvd","html_url":"https://github.com/toonvd","followers_url":"https://api.github.com/users/toonvd/followers","following_url":"https://api.github.com/users/toonvd/following{/other_user}","gists_url":"https://api.github.com/users/toonvd/gists{/gist_id}","starred_url":"https://api.github.com/users/toonvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toonvd/subscriptions","organizations_url":"https://api.github.com/users/toonvd/orgs","repos_url":"https://api.github.com/users/toonvd/repos","events_url":"https://api.github.com/users/toonvd/events{/privacy}","received_events_url":"https://api.github.com/users/toonvd/received_events","type":"User","site_admin":false},"repo":{"id":55833245,"name":"EcomDev_Varnish","full_name":"toonvd/EcomDev_Varnish","owner":{"login":"toonvd","id":1227745,"avatar_url":"https://avatars.githubusercontent.com/u/1227745?v=3","gravatar_id":"","url":"https://api.github.com/users/toonvd","html_url":"https://github.com/toonvd","followers_url":"https://api.github.com/users/toonvd/followers","following_url":"https://api.github.com/users/toonvd/following{/other_user}","gists_url":"https://api.github.com/users/toonvd/gists{/gist_id}","starred_url":"https://api.github.com/users/toonvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toonvd/subscriptions","organizations_url":"https://api.github.com/users/toonvd/orgs","repos_url":"https://api.github.com/users/toonvd/repos","events_url":"https://api.github.com/users/toonvd/events{/privacy}","received_events_url":"https://api.github.com/users/toonvd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toonvd/EcomDev_Varnish","description":"Advanced Varnish implementation for Magento","fork":true,"url":"https://api.github.com/repos/toonvd/EcomDev_Varnish","forks_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/forks","keys_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/teams","hooks_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/hooks","issue_events_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/issues/events{/number}","events_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/events","assignees_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/assignees{/user}","branches_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/branches{/branch}","tags_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/tags","blobs_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/git/refs{/sha}","trees_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/statuses/{sha}","languages_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/languages","stargazers_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/stargazers","contributors_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/contributors","subscribers_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/subscribers","subscription_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/subscription","commits_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/commits{/sha}","git_commits_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/git/commits{/sha}","comments_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/comments{/number}","issue_comment_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/issues/comments{/number}","contents_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/contents/{+path}","compare_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/merges","archive_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/downloads","issues_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/issues{/number}","pulls_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/pulls{/number}","milestones_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/milestones{/number}","notifications_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/labels{/name}","releases_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/releases{/id}","deployments_url":"https://api.github.com/repos/toonvd/EcomDev_Varnish/deployments","created_at":"2016-04-09T08:16:50Z","updated_at":"2016-04-09T08:16:50Z","pushed_at":"2016-05-02T19:05:09Z","git_url":"git://github.com/toonvd/EcomDev_Varnish.git","ssh_url":"git@github.com:toonvd/EcomDev_Varnish.git","clone_url":"https://github.com/toonvd/EcomDev_Varnish.git","svn_url":"https://github.com/toonvd/EcomDev_Varnish","homepage":null,"size":114,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"EcomDev:develop","ref":"develop","sha":"2e8530e9bfd542070d3305241923d21c8238d5ec","user":{"login":"EcomDev","id":1301975,"avatar_url":"https://avatars.githubusercontent.com/u/1301975?v=3","gravatar_id":"","url":"https://api.github.com/users/EcomDev","html_url":"https://github.com/EcomDev","followers_url":"https://api.github.com/users/EcomDev/followers","following_url":"https://api.github.com/users/EcomDev/following{/other_user}","gists_url":"https://api.github.com/users/EcomDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EcomDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EcomDev/subscriptions","organizations_url":"https://api.github.com/users/EcomDev/orgs","repos_url":"https://api.github.com/users/EcomDev/repos","events_url":"https://api.github.com/users/EcomDev/events{/privacy}","received_events_url":"https://api.github.com/users/EcomDev/received_events","type":"Organization","site_admin":false},"repo":{"id":19844704,"name":"EcomDev_Varnish","full_name":"EcomDev/EcomDev_Varnish","owner":{"login":"EcomDev","id":1301975,"avatar_url":"https://avatars.githubusercontent.com/u/1301975?v=3","gravatar_id":"","url":"https://api.github.com/users/EcomDev","html_url":"https://github.com/EcomDev","followers_url":"https://api.github.com/users/EcomDev/followers","following_url":"https://api.github.com/users/EcomDev/following{/other_user}","gists_url":"https://api.github.com/users/EcomDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EcomDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EcomDev/subscriptions","organizations_url":"https://api.github.com/users/EcomDev/orgs","repos_url":"https://api.github.com/users/EcomDev/repos","events_url":"https://api.github.com/users/EcomDev/events{/privacy}","received_events_url":"https://api.github.com/users/EcomDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EcomDev/EcomDev_Varnish","description":"Advanced Varnish implementation for Magento","fork":false,"url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish","forks_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/forks","keys_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/teams","hooks_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/hooks","issue_events_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/events{/number}","events_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/events","assignees_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/assignees{/user}","branches_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/branches{/branch}","tags_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/tags","blobs_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/git/refs{/sha}","trees_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/statuses/{sha}","languages_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/languages","stargazers_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/stargazers","contributors_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/contributors","subscribers_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/subscribers","subscription_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/subscription","commits_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/commits{/sha}","git_commits_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/git/commits{/sha}","comments_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/comments{/number}","issue_comment_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/comments{/number}","contents_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/contents/{+path}","compare_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/merges","archive_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/downloads","issues_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues{/number}","pulls_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls{/number}","milestones_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/milestones{/number}","notifications_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/labels{/name}","releases_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/releases{/id}","deployments_url":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/deployments","created_at":"2014-05-16T04:32:43Z","updated_at":"2016-04-11T08:52:49Z","pushed_at":"2016-05-02T19:08:27Z","git_url":"git://github.com/EcomDev/EcomDev_Varnish.git","ssh_url":"git@github.com:EcomDev/EcomDev_Varnish.git","clone_url":"https://github.com/EcomDev/EcomDev_Varnish.git","svn_url":"https://github.com/EcomDev/EcomDev_Varnish","homepage":null,"size":340,"stargazers_count":49,"watchers_count":49,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24"},"html":{"href":"https://github.com/EcomDev/EcomDev_Varnish/pull/24"},"issue":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/24"},"comments":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/EcomDev/EcomDev_Varnish/statuses/f21c615deb476e7b31f2dfbdc67b3f1db2763f9b"}}}}