{"action":"created","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/3217","repository_url":"https://api.github.com/repos/flynn/flynn","labels_url":"https://api.github.com/repos/flynn/flynn/issues/3217/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/3217/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/3217/events","html_url":"https://github.com/flynn/flynn/issues/3217","id":169103617,"number":3217,"title":"Get Public Route in Environment Variable","user":{"login":"IsNull","id":439313,"avatar_url":"https://avatars.githubusercontent.com/u/439313?v=3","gravatar_id":"","url":"https://api.github.com/users/IsNull","html_url":"https://github.com/IsNull","followers_url":"https://api.github.com/users/IsNull/followers","following_url":"https://api.github.com/users/IsNull/following{/other_user}","gists_url":"https://api.github.com/users/IsNull/gists{/gist_id}","starred_url":"https://api.github.com/users/IsNull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsNull/subscriptions","organizations_url":"https://api.github.com/users/IsNull/orgs","repos_url":"https://api.github.com/users/IsNull/repos","events_url":"https://api.github.com/users/IsNull/events{/privacy}","received_events_url":"https://api.github.com/users/IsNull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T10:54:17Z","updated_at":"2016-08-03T14:21:44Z","closed_at":null,"body":"I am currently deploying several apps to Flynn which all register themselves on a Eureka Service Discovery server (from [Spring Cloud Netflix](https://cloud.spring.io/spring-cloud-netflix/)), which also runs on Flynn. (I don't want to have Vendor lock-in so using Eureka is a nice way to run my system on different PaaS.)\r\n\r\nAll application instances use their internal IPs to register themselves at Eureka, which works quite well. I think using discoverd would be similar, but use the internal domain names instead.\r\n\r\nI have now the situation that I want to send the user from app-A to app-B. The service discovery system gives me however the internal IPs which are useless as soon I am outside of Flynn. What I actually need is the applications route. I.e. I need _application_ discovery with public routes.\r\n\r\nI have seen that on other PaaS such as CloudFoundry, each instance has its routes available in a environment variable `vcap.application.uris[0]`. So if the instance knows which route it has, I could somehow get this to work. \r\n\r\nBut maybe I miss something and this problem can be solved simpler.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/flynn/flynn/issues/comments/237250823","html_url":"https://github.com/flynn/flynn/issues/3217#issuecomment-237250823","issue_url":"https://api.github.com/repos/flynn/flynn/issues/3217","id":237250823,"user":{"login":"titanous","id":13026,"avatar_url":"https://avatars.githubusercontent.com/u/13026?v=3","gravatar_id":"","url":"https://api.github.com/users/titanous","html_url":"https://github.com/titanous","followers_url":"https://api.github.com/users/titanous/followers","following_url":"https://api.github.com/users/titanous/following{/other_user}","gists_url":"https://api.github.com/users/titanous/gists{/gist_id}","starred_url":"https://api.github.com/users/titanous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titanous/subscriptions","organizations_url":"https://api.github.com/users/titanous/orgs","repos_url":"https://api.github.com/users/titanous/repos","events_url":"https://api.github.com/users/titanous/events{/privacy}","received_events_url":"https://api.github.com/users/titanous/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T14:21:44Z","updated_at":"2016-08-03T14:21:44Z","body":"We're currently discussing a new configuration system for apps that would be good for this, putting the routes in the environment is not idea because it requires restarting the application every time a route changes."}}
{"actor":{"display_login":"titanous"}}