{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/megacool/salt-states/pulls/18","id":220199769,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMTk5NzY5","html_url":"https://github.com/megacool/salt-states/pull/18","diff_url":"https://github.com/megacool/salt-states/pull/18.diff","patch_url":"https://github.com/megacool/salt-states/pull/18.patch","issue_url":"https://api.github.com/repos/megacool/salt-states/issues/18","number":18,"state":"closed","locked":false,"title":"Enable setting proxy_pass path","user":{"login":"thusoy","id":1466123,"node_id":"MDQ6VXNlcjE0NjYxMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1466123?v=4","gravatar_id":"","url":"https://api.github.com/users/thusoy","html_url":"https://github.com/thusoy","followers_url":"https://api.github.com/users/thusoy/followers","following_url":"https://api.github.com/users/thusoy/following{/other_user}","gists_url":"https://api.github.com/users/thusoy/gists{/gist_id}","starred_url":"https://api.github.com/users/thusoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thusoy/subscriptions","organizations_url":"https://api.github.com/users/thusoy/orgs","repos_url":"https://api.github.com/users/thusoy/repos","events_url":"https://api.github.com/users/thusoy/events{/privacy}","received_events_url":"https://api.github.com/users/thusoy/received_events","type":"User","site_admin":false},"body":"Without this it's not possible to trim the prefix when forwarding.\r\nUsually a location block like\r\n```\r\nlocation /prefix {\r\n    proxy_pass https://example.com;\r\n}\r\n```\r\nCauses `GET /prefix` to end up as `GET /prefix` also for the backend.\r\nHowever, if the proxy_pass statement ends with a path, the prefix is\r\ntrimmed from the forwarding request. Thus a block like\r\n```\r\nlocation /prefix {\r\n    proxy_pass https://example.com/;\r\n}\r\n```\r\n(note the trailing slash) will make a request like `GET /prefix`\r\ntranslate to `GET /` on the backend. This change preserves the path set\r\nin the upstream in the proxy_pass statement, which enables controlling\r\nthis behavior.","created_at":"2018-10-03T22:30:49Z","updated_at":"2018-10-03T22:47:45Z","closed_at":"2018-10-03T22:47:44Z","merged_at":"2018-10-03T22:47:44Z","merge_commit_sha":"2587729fdfa6bcd6ed496d2accd06ce8b46e6be3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":846523207,"node_id":"MDU6TGFiZWw4NDY1MjMyMDc=","url":"https://api.github.com/repos/megacool/salt-states/labels/Ready%20for%20review","name":"Ready for review","color":"aefcdf","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/megacool/salt-states/pulls/18/commits","review_comments_url":"https://api.github.com/repos/megacool/salt-states/pulls/18/comments","review_comment_url":"https://api.github.com/repos/megacool/salt-states/pulls/comments{/number}","comments_url":"https://api.github.com/repos/megacool/salt-states/issues/18/comments","statuses_url":"https://api.github.com/repos/megacool/salt-states/statuses/2587729fdfa6bcd6ed496d2accd06ce8b46e6be3","head":{"label":"megacool:enable-path","ref":"enable-path","sha":"2587729fdfa6bcd6ed496d2accd06ce8b46e6be3","user":{"login":"megacool","id":14986797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTg2Nzk3","avatar_url":"https://avatars2.githubusercontent.com/u/14986797?v=4","gravatar_id":"","url":"https://api.github.com/users/megacool","html_url":"https://github.com/megacool","followers_url":"https://api.github.com/users/megacool/followers","following_url":"https://api.github.com/users/megacool/following{/other_user}","gists_url":"https://api.github.com/users/megacool/gists{/gist_id}","starred_url":"https://api.github.com/users/megacool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megacool/subscriptions","organizations_url":"https://api.github.com/users/megacool/orgs","repos_url":"https://api.github.com/users/megacool/repos","events_url":"https://api.github.com/users/megacool/events{/privacy}","received_events_url":"https://api.github.com/users/megacool/received_events","type":"Organization","site_admin":false},"repo":{"id":66108247,"node_id":"MDEwOlJlcG9zaXRvcnk2NjEwODI0Nw==","name":"salt-states","full_name":"megacool/salt-states","private":false,"owner":{"login":"megacool","id":14986797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTg2Nzk3","avatar_url":"https://avatars2.githubusercontent.com/u/14986797?v=4","gravatar_id":"","url":"https://api.github.com/users/megacool","html_url":"https://github.com/megacool","followers_url":"https://api.github.com/users/megacool/followers","following_url":"https://api.github.com/users/megacool/following{/other_user}","gists_url":"https://api.github.com/users/megacool/gists{/gist_id}","starred_url":"https://api.github.com/users/megacool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megacool/subscriptions","organizations_url":"https://api.github.com/users/megacool/orgs","repos_url":"https://api.github.com/users/megacool/repos","events_url":"https://api.github.com/users/megacool/events{/privacy}","received_events_url":"https://api.github.com/users/megacool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/megacool/salt-states","description":"Gitfs backend for some of our salt states.","fork":true,"url":"https://api.github.com/repos/megacool/salt-states","forks_url":"https://api.github.com/repos/megacool/salt-states/forks","keys_url":"https://api.github.com/repos/megacool/salt-states/keys{/key_id}","collaborators_url":"https://api.github.com/repos/megacool/salt-states/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/megacool/salt-states/teams","hooks_url":"https://api.github.com/repos/megacool/salt-states/hooks","issue_events_url":"https://api.github.com/repos/megacool/salt-states/issues/events{/number}","events_url":"https://api.github.com/repos/megacool/salt-states/events","assignees_url":"https://api.github.com/repos/megacool/salt-states/assignees{/user}","branches_url":"https://api.github.com/repos/megacool/salt-states/branches{/branch}","tags_url":"https://api.github.com/repos/megacool/salt-states/tags","blobs_url":"https://api.github.com/repos/megacool/salt-states/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/megacool/salt-states/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/megacool/salt-states/git/refs{/sha}","trees_url":"https://api.github.com/repos/megacool/salt-states/git/trees{/sha}","statuses_url":"https://api.github.com/repos/megacool/salt-states/statuses/{sha}","languages_url":"https://api.github.com/repos/megacool/salt-states/languages","stargazers_url":"https://api.github.com/repos/megacool/salt-states/stargazers","contributors_url":"https://api.github.com/repos/megacool/salt-states/contributors","subscribers_url":"https://api.github.com/repos/megacool/salt-states/subscribers","subscription_url":"https://api.github.com/repos/megacool/salt-states/subscription","commits_url":"https://api.github.com/repos/megacool/salt-states/commits{/sha}","git_commits_url":"https://api.github.com/repos/megacool/salt-states/git/commits{/sha}","comments_url":"https://api.github.com/repos/megacool/salt-states/comments{/number}","issue_comment_url":"https://api.github.com/repos/megacool/salt-states/issues/comments{/number}","contents_url":"https://api.github.com/repos/megacool/salt-states/contents/{+path}","compare_url":"https://api.github.com/repos/megacool/salt-states/compare/{base}...{head}","merges_url":"https://api.github.com/repos/megacool/salt-states/merges","archive_url":"https://api.github.com/repos/megacool/salt-states/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/megacool/salt-states/downloads","issues_url":"https://api.github.com/repos/megacool/salt-states/issues{/number}","pulls_url":"https://api.github.com/repos/megacool/salt-states/pulls{/number}","milestones_url":"https://api.github.com/repos/megacool/salt-states/milestones{/number}","notifications_url":"https://api.github.com/repos/megacool/salt-states/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/megacool/salt-states/labels{/name}","releases_url":"https://api.github.com/repos/megacool/salt-states/releases{/id}","deployments_url":"https://api.github.com/repos/megacool/salt-states/deployments","created_at":"2016-08-19T19:47:42Z","updated_at":"2018-09-13T01:50:01Z","pushed_at":"2018-10-03T22:47:44Z","git_url":"git://github.com/megacool/salt-states.git","ssh_url":"git@github.com:megacool/salt-states.git","clone_url":"https://github.com/megacool/salt-states.git","svn_url":"https://github.com/megacool/salt-states","homepage":"","size":614,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"megacool:master","ref":"master","sha":"428423db9ac1d1f26cf8e6c9e4ef468d1beb3a60","user":{"login":"megacool","id":14986797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTg2Nzk3","avatar_url":"https://avatars2.githubusercontent.com/u/14986797?v=4","gravatar_id":"","url":"https://api.github.com/users/megacool","html_url":"https://github.com/megacool","followers_url":"https://api.github.com/users/megacool/followers","following_url":"https://api.github.com/users/megacool/following{/other_user}","gists_url":"https://api.github.com/users/megacool/gists{/gist_id}","starred_url":"https://api.github.com/users/megacool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megacool/subscriptions","organizations_url":"https://api.github.com/users/megacool/orgs","repos_url":"https://api.github.com/users/megacool/repos","events_url":"https://api.github.com/users/megacool/events{/privacy}","received_events_url":"https://api.github.com/users/megacool/received_events","type":"Organization","site_admin":false},"repo":{"id":66108247,"node_id":"MDEwOlJlcG9zaXRvcnk2NjEwODI0Nw==","name":"salt-states","full_name":"megacool/salt-states","private":false,"owner":{"login":"megacool","id":14986797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTg2Nzk3","avatar_url":"https://avatars2.githubusercontent.com/u/14986797?v=4","gravatar_id":"","url":"https://api.github.com/users/megacool","html_url":"https://github.com/megacool","followers_url":"https://api.github.com/users/megacool/followers","following_url":"https://api.github.com/users/megacool/following{/other_user}","gists_url":"https://api.github.com/users/megacool/gists{/gist_id}","starred_url":"https://api.github.com/users/megacool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megacool/subscriptions","organizations_url":"https://api.github.com/users/megacool/orgs","repos_url":"https://api.github.com/users/megacool/repos","events_url":"https://api.github.com/users/megacool/events{/privacy}","received_events_url":"https://api.github.com/users/megacool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/megacool/salt-states","description":"Gitfs backend for some of our salt states.","fork":true,"url":"https://api.github.com/repos/megacool/salt-states","forks_url":"https://api.github.com/repos/megacool/salt-states/forks","keys_url":"https://api.github.com/repos/megacool/salt-states/keys{/key_id}","collaborators_url":"https://api.github.com/repos/megacool/salt-states/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/megacool/salt-states/teams","hooks_url":"https://api.github.com/repos/megacool/salt-states/hooks","issue_events_url":"https://api.github.com/repos/megacool/salt-states/issues/events{/number}","events_url":"https://api.github.com/repos/megacool/salt-states/events","assignees_url":"https://api.github.com/repos/megacool/salt-states/assignees{/user}","branches_url":"https://api.github.com/repos/megacool/salt-states/branches{/branch}","tags_url":"https://api.github.com/repos/megacool/salt-states/tags","blobs_url":"https://api.github.com/repos/megacool/salt-states/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/megacool/salt-states/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/megacool/salt-states/git/refs{/sha}","trees_url":"https://api.github.com/repos/megacool/salt-states/git/trees{/sha}","statuses_url":"https://api.github.com/repos/megacool/salt-states/statuses/{sha}","languages_url":"https://api.github.com/repos/megacool/salt-states/languages","stargazers_url":"https://api.github.com/repos/megacool/salt-states/stargazers","contributors_url":"https://api.github.com/repos/megacool/salt-states/contributors","subscribers_url":"https://api.github.com/repos/megacool/salt-states/subscribers","subscription_url":"https://api.github.com/repos/megacool/salt-states/subscription","commits_url":"https://api.github.com/repos/megacool/salt-states/commits{/sha}","git_commits_url":"https://api.github.com/repos/megacool/salt-states/git/commits{/sha}","comments_url":"https://api.github.com/repos/megacool/salt-states/comments{/number}","issue_comment_url":"https://api.github.com/repos/megacool/salt-states/issues/comments{/number}","contents_url":"https://api.github.com/repos/megacool/salt-states/contents/{+path}","compare_url":"https://api.github.com/repos/megacool/salt-states/compare/{base}...{head}","merges_url":"https://api.github.com/repos/megacool/salt-states/merges","archive_url":"https://api.github.com/repos/megacool/salt-states/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/megacool/salt-states/downloads","issues_url":"https://api.github.com/repos/megacool/salt-states/issues{/number}","pulls_url":"https://api.github.com/repos/megacool/salt-states/pulls{/number}","milestones_url":"https://api.github.com/repos/megacool/salt-states/milestones{/number}","notifications_url":"https://api.github.com/repos/megacool/salt-states/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/megacool/salt-states/labels{/name}","releases_url":"https://api.github.com/repos/megacool/salt-states/releases{/id}","deployments_url":"https://api.github.com/repos/megacool/salt-states/deployments","created_at":"2016-08-19T19:47:42Z","updated_at":"2018-09-13T01:50:01Z","pushed_at":"2018-10-03T22:47:44Z","git_url":"git://github.com/megacool/salt-states.git","ssh_url":"git@github.com:megacool/salt-states.git","clone_url":"https://github.com/megacool/salt-states.git","svn_url":"https://github.com/megacool/salt-states","homepage":"","size":614,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/megacool/salt-states/pulls/18"},"html":{"href":"https://github.com/megacool/salt-states/pull/18"},"issue":{"href":"https://api.github.com/repos/megacool/salt-states/issues/18"},"comments":{"href":"https://api.github.com/repos/megacool/salt-states/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/megacool/salt-states/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/megacool/salt-states/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/megacool/salt-states/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/megacool/salt-states/statuses/2587729fdfa6bcd6ed496d2accd06ce8b46e6be3"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"thusoy","id":1466123,"node_id":"MDQ6VXNlcjE0NjYxMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1466123?v=4","gravatar_id":"","url":"https://api.github.com/users/thusoy","html_url":"https://github.com/thusoy","followers_url":"https://api.github.com/users/thusoy/followers","following_url":"https://api.github.com/users/thusoy/following{/other_user}","gists_url":"https://api.github.com/users/thusoy/gists{/gist_id}","starred_url":"https://api.github.com/users/thusoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thusoy/subscriptions","organizations_url":"https://api.github.com/users/thusoy/orgs","repos_url":"https://api.github.com/users/thusoy/repos","events_url":"https://api.github.com/users/thusoy/events{/privacy}","received_events_url":"https://api.github.com/users/thusoy/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":4,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"thusoy"}}