mattermost-plugin-github icon indicating copy to clipboard operation
mattermost-plugin-github copied to clipboard

Custom Mattermost ServerURL for webhooks

Open jolu-dmt opened this issue 9 months ago • 2 comments

Since our Mattermost server is not publicly accessible and is behind a VPN, I have set up an Nginx proxy on a separate subdomain and port to forward incoming GitHub traffic to the internal Mattermost server's webhooks.

I have successfully configured everything, including OAuth in Mattermost. However, when I create a subscription using the /github subscriptions add slash command, the webhook is generated in our GitHub organization with the internal Mattermost Site URL instead of my custom URL. Is there a way to configure the plugin to use a custom incoming webhook URL instead of the internal one.

jolu-dmt avatar Feb 07 '25 00:02 jolu-dmt

I'm not sure but i think the function "getSiteURL" in https://github.com/mattermost/mattermost-plugin-github/blob/master/server/plugin/utils.go has to be modified?

jolu-dmt avatar Apr 11 '25 18:04 jolu-dmt

@wiggin77 Should we pick this?

raghavaggarwal2308 avatar Apr 16 '25 10:04 raghavaggarwal2308