getsentry / sentry-hipchat-ac

New hipchat API.
Apache License 2.0
11 stars 5 forks source link

Add support for changing the prefix of output urls in plugin API #28

Open reorx opened 8 years ago

reorx commented 8 years ago

When sentry server is hosted on a intranet, normally we will access it by domain like sentry.mycompany.dev which is only available in office WLAN, we will neet tunnel software like ngrok to provide a public IP for hipchat to connect, in this situation, all the relevant urls exposed to hipchat should be xxx.ngrok.io instead of sentry.mycompany.dev.

This pull request aims at making prefix of output urls configurable, by adding HIPCHAT_AC_BASE_URL option for sentry.conf.py. If the option is set, all urls will be prefixed with this option, if not, the prefix will still be system.url-prefix. The code is tested with latest sentry build and a environment that both sentry and hipchat server are self-hosted.