How to Create Trusted Outgoing Webhooks

To be more specific. The integration server and the mattermost server are on the same network. However, both are exposed to the internet. Whitelisting the integration server with “AllowedUntrustedInternalConnections” solves this issue; however, that seems silly and there should be a better solution.