{"action":"opened","issue":{"url":"https://api.github.com/repos/tsuru/tsuru/issues/1693","repository_url":"https://api.github.com/repos/tsuru/tsuru","labels_url":"https://api.github.com/repos/tsuru/tsuru/issues/1693/labels{/name}","comments_url":"https://api.github.com/repos/tsuru/tsuru/issues/1693/comments","events_url":"https://api.github.com/repos/tsuru/tsuru/issues/1693/events","html_url":"https://github.com/tsuru/tsuru/issues/1693","id":252956068,"number":1693,"title":"support custom http headers on healthchecks","user":{"login":"andrestc","id":2944739,"avatar_url":"https://avatars3.githubusercontent.com/u/2944739?v=4","gravatar_id":"","url":"https://api.github.com/users/andrestc","html_url":"https://github.com/andrestc","followers_url":"https://api.github.com/users/andrestc/followers","following_url":"https://api.github.com/users/andrestc/following{/other_user}","gists_url":"https://api.github.com/users/andrestc/gists{/gist_id}","starred_url":"https://api.github.com/users/andrestc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrestc/subscriptions","organizations_url":"https://api.github.com/users/andrestc/orgs","repos_url":"https://api.github.com/users/andrestc/repos","events_url":"https://api.github.com/users/andrestc/events{/privacy}","received_events_url":"https://api.github.com/users/andrestc/received_events","type":"User","site_admin":false},"labels":[{"id":804803,"url":"https://api.github.com/repos/tsuru/tsuru/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-25T16:35:14Z","updated_at":"2017-08-25T16:35:14Z","closed_at":null,"body":"We should support setting custom http headers for healthchecks on tsuru.yml, example: suppose you have the following configuration in an app's tsuru.yaml:\r\n\r\n```\r\nhealthcheck:\r\n  path: /healthcheck\r\n  method: GET\r\n  status: 200\r\n  request_headers:\r\n    - Host: myapp.globoi.com\r\n    - TSURU_HC: 1\r\n```\r\n\r\nWhenever testing the application healthcheck tsuru would send a request to `/healthcheck` adding both the `Host` and the `TSURU_HC` http headers."}}
{"actor":{"display_login":"andrestc"}}