{"action":"created","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1398","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1398/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1398/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1398/events","html_url":"https://github.com/bosun-monitor/bosun/issues/1398","id":111908849,"number":1398,"title":"Can I access bosun through any reverse proxy server?","user":{"login":"digrich","id":9439420,"avatar_url":"https://avatars.githubusercontent.com/u/9439420?v=3","gravatar_id":"","url":"https://api.github.com/users/digrich","html_url":"https://github.com/digrich","followers_url":"https://api.github.com/users/digrich/followers","following_url":"https://api.github.com/users/digrich/following{/other_user}","gists_url":"https://api.github.com/users/digrich/gists{/gist_id}","starred_url":"https://api.github.com/users/digrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digrich/subscriptions","organizations_url":"https://api.github.com/users/digrich/orgs","repos_url":"https://api.github.com/users/digrich/repos","events_url":"https://api.github.com/users/digrich/events{/privacy}","received_events_url":"https://api.github.com/users/digrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-16T20:51:12Z","updated_at":"2015-10-29T19:31:39Z","closed_at":null,"body":"I am trying to access bosun through a reverse proxy server and noticed that all resources and api calls are getting failed because they are mapped directly to root. \r\n\r\nI am trying to include bosun in our corporate management portal and trying to call through a reverse proxy server.\r\n\r\nmapping :\r\nhttp://example.com/bosun -> http://bosun:8070/\r\n\r\nIs there anyway I can achieve this?"},"comment":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/comments/152295416","html_url":"https://github.com/bosun-monitor/bosun/issues/1398#issuecomment-152295416","issue_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1398","id":152295416,"user":{"login":"awesensepaul","id":12399721,"avatar_url":"https://avatars.githubusercontent.com/u/12399721?v=3","gravatar_id":"","url":"https://api.github.com/users/awesensepaul","html_url":"https://github.com/awesensepaul","followers_url":"https://api.github.com/users/awesensepaul/followers","following_url":"https://api.github.com/users/awesensepaul/following{/other_user}","gists_url":"https://api.github.com/users/awesensepaul/gists{/gist_id}","starred_url":"https://api.github.com/users/awesensepaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesensepaul/subscriptions","organizations_url":"https://api.github.com/users/awesensepaul/orgs","repos_url":"https://api.github.com/users/awesensepaul/repos","events_url":"https://api.github.com/users/awesensepaul/events{/privacy}","received_events_url":"https://api.github.com/users/awesensepaul/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T19:31:39Z","updated_at":"2015-10-29T19:31:39Z","body":"Alright, that `hostname` parameter does help with the e-mails, thanks. I would prefer if there was also a way to set the scheme to https (or just default to https, really); but my reverse proxy is already configured to re-direct anything from HTTP -> HTTPS.\r\n\r\nThere is still no way within the bosun config to append a path to the url or use a URL prefix for all URLs generated (e.g. `/mybosun/` and/or `https://foo.bar.com/mybosun/`). I would prefer the URL prefix approach since it encompasses `scheme + hostname + port + path` in a single config setting.\r\n\r\nThe most minimal implementation I can think of would only need to *generate* the URLs with this prefix; it is straightforward to configure a reverse proxy to re-write these from `https://foo.bar.com/bosun/incident` to http://127.0.0.1:8070/incident` (e.g. the routing for `/incident` and other endpoints can remain the same)."}}