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.
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 bexxx.ngrok.io
instead ofsentry.mycompany.dev
.This pull request aims at making prefix of output urls configurable, by adding
HIPCHAT_AC_BASE_URL
option forsentry.conf.py
. If the option is set, all urls will be prefixed with this option, if not, the prefix will still besystem.url-prefix
. The code is tested with latest sentry build and a environment that both sentry and hipchat server are self-hosted.