{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/484","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/484/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/484/events","html_url":"https://github.com/jwilder/nginx-proxy/pull/484","id":160235598,"number":484,"title":"Add APP_KEY env variable to allow multiple nginx-proxy containers on one host","user":{"login":"pysysops","id":1253072,"avatar_url":"https://avatars.githubusercontent.com/u/1253072?v=3","gravatar_id":"","url":"https://api.github.com/users/pysysops","html_url":"https://github.com/pysysops","followers_url":"https://api.github.com/users/pysysops/followers","following_url":"https://api.github.com/users/pysysops/following{/other_user}","gists_url":"https://api.github.com/users/pysysops/gists{/gist_id}","starred_url":"https://api.github.com/users/pysysops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pysysops/subscriptions","organizations_url":"https://api.github.com/users/pysysops/orgs","repos_url":"https://api.github.com/users/pysysops/repos","events_url":"https://api.github.com/users/pysysops/events{/privacy}","received_events_url":"https://api.github.com/users/pysysops/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T17:14:05Z","updated_at":"2016-06-14T17:18:44Z","closed_at":"2016-06-14T17:18:44Z","pull_request":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/pulls/484","html_url":"https://github.com/jwilder/nginx-proxy/pull/484","diff_url":"https://github.com/jwilder/nginx-proxy/pull/484.diff","patch_url":"https://github.com/jwilder/nginx-proxy/pull/484.patch"},"body":"With the changes in this PR you can run multiple nginx-proxy containers on a single Docker host and pin selected backend containers to specific proxies.\r\n\r\nThis would be useful in cases where you might deploy 1 nginx and 4 api containers as a \"deployable unit\" where you might use a build number, a git short commit, git tag or other \"APP_KEY\" to assign backends to different proxies for example, in blue-green style deployment scenarios. \r\n\r\nIf there is an APP_KEY, the nginx-proxy will add an \"X-App-Key\" header that can be utilised in deployment scripts or for building simple dashboards showing what version or what \"side\" (blue or green) of an app you are on.\r\n\r\nI don't think there is a pull request to offer this or any issues regarding it.\r\n\r\nThanks,\r\n\r\nTim\r\n"},"comment":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/comments/225952087","html_url":"https://github.com/jwilder/nginx-proxy/pull/484#issuecomment-225952087","issue_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/484","id":225952087,"user":{"login":"jwilder","id":219935,"avatar_url":"https://avatars.githubusercontent.com/u/219935?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilder","html_url":"https://github.com/jwilder","followers_url":"https://api.github.com/users/jwilder/followers","following_url":"https://api.github.com/users/jwilder/following{/other_user}","gists_url":"https://api.github.com/users/jwilder/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilder/subscriptions","organizations_url":"https://api.github.com/users/jwilder/orgs","repos_url":"https://api.github.com/users/jwilder/repos","events_url":"https://api.github.com/users/jwilder/events{/privacy}","received_events_url":"https://api.github.com/users/jwilder/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T17:18:44Z","updated_at":"2016-06-14T17:18:44Z","body":"Thanks @pysysops.  This is an interesting idea, but I don't think it's a good fit for this project.  This kind of functionality is supported by allowing custom templates to be used."}}
{"actor":{"display_login":"jwilder"}}