{"action":"created","issue":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/64","repository_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy","labels_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/64/comments","events_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/64/events","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/64","id":190982622,"number":64,"title":"Rewrite servicePath to rewritePath if available","user":{"login":"barhun","id":1136948,"avatar_url":"https://avatars.githubusercontent.com/u/1136948?v=3","gravatar_id":"","url":"https://api.github.com/users/barhun","html_url":"https://github.com/barhun","followers_url":"https://api.github.com/users/barhun/followers","following_url":"https://api.github.com/users/barhun/following{/other_user}","gists_url":"https://api.github.com/users/barhun/gists{/gist_id}","starred_url":"https://api.github.com/users/barhun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barhun/subscriptions","organizations_url":"https://api.github.com/users/barhun/orgs","repos_url":"https://api.github.com/users/barhun/repos","events_url":"https://api.github.com/users/barhun/events{/privacy}","received_events_url":"https://api.github.com/users/barhun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-22T12:08:24Z","updated_at":"2016-12-05T14:15:39Z","closed_at":null,"body":"Hi,\r\n\r\nFirst of all, this is one of the best projects out there which save me so much time being free of hassle. (: Yet, one functionality I'd like to be able to make use of seems missing. Here it is: I want the proxy to match a service with the beginning of the request path as it's already been possible and rewrite the path before forwarding the request to the matching service as follows:\r\n\r\n```\r\ndocker service create --name go-demo \\\r\n    -e DB=go-demo-db \\\r\n    --network go-demo \\\r\n    --network proxy \\\r\n    --label com.df.notify=true \\\r\n    --label com.df.distribute=true \\\r\n    --label com.df.servicePath=/demo/* \\\r\n    --label com.df.rewritePath=/* \\\r\n    --label com.df.port=8080 \\\r\n    vfarcic/go-demo\r\n```\r\n\r\nThis would forward requests for http://domain/demo/ to http://serviceName/ and some other requests for http://domain/demo/admin to http://serviceName/admin. I've browsed through the articles in this repo and performed some searches but found out no way to rewrite request paths. Is this functionality available or do you have any plans about it?"},"comment":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/comments/264864279","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/64#issuecomment-264864279","issue_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/64","id":264864279,"user":{"login":"jmkhael","id":5046302,"avatar_url":"https://avatars.githubusercontent.com/u/5046302?v=3","gravatar_id":"","url":"https://api.github.com/users/jmkhael","html_url":"https://github.com/jmkhael","followers_url":"https://api.github.com/users/jmkhael/followers","following_url":"https://api.github.com/users/jmkhael/following{/other_user}","gists_url":"https://api.github.com/users/jmkhael/gists{/gist_id}","starred_url":"https://api.github.com/users/jmkhael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmkhael/subscriptions","organizations_url":"https://api.github.com/users/jmkhael/orgs","repos_url":"https://api.github.com/users/jmkhael/repos","events_url":"https://api.github.com/users/jmkhael/events{/privacy}","received_events_url":"https://api.github.com/users/jmkhael/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T14:15:39Z","updated_at":"2016-12-05T14:15:39Z","body":"Great, i'll give it a go. the consul part in the commands and labels mislead me :)"}}
{"actor":{"display_login":"jmkhael"}}