I'm trying to integrate an internal GitLab installation with a Slack incoming webhook but I have a problem, the machine where GitLab can only access other machines in the same network. I have VM which is in that same network and has external access.
The Slack webhook is a URL like this:
https://hooks.slack.com/services/T18QMD0NM/C09PY5XKO/52lDzmkoxL51p9NLRqxQ9Kq2
But since I cannot use that in GitLab, I've configured the Slack service on GitLab to make requests to the following URL instead:
https://192.168.1.220:3128/services/T18QMD0NM/C09PY5XKO/52lDzmkoxL51p9NLRqxQ9Kq2
192.168.1.220
is the VM IP address and 3128
is where Squid is listening.
How do I use Squid to forward all incoming requests to hooks.slack.com
?
P.S: I have a clean Squid installation, didn't change any setting at all.
Best Answer
I suppose the best way to solve your issue is by directing your GitLab to use an outbound http proxy.
You can refer this link to configure the http proxy on your GitLab installation.
-- Update
Add the following line of code in your squid.conf file:
And Finally reload/reconfigure squid using: