Using integrations behind company firewall


#1

We are looking for an IM solution for our company and Redhat suggested Rocketchat to us. One of the main problems I am finding is we are behind a firewall and Rocketchat seems to ignore all environment variables such as http_proxy and https_proxy. I would love to get the screensharing option but everything I am trying keeps ending with this.
app.deadsimplescreensharing.com:443 at errnoException (dns.js:50:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26) code: ‘ENOTFOUND’, errno: ‘ENOTFOUND’, syscall: ‘getaddrinfo’, host: ‘app.deadsimplescreensharing.com’, port: 443 }
Is there a way to put the proxy as an environment variable in rocket chat?


#2

So found the fix for this. I am using RHEL 7. In the file
/usr/lib/systemd/system/rocketchat.service
Put these two lines at the bottom of service
Environment=HTTP_PROXY=http://127.0.0.1:3128
Environment=HTTPS_PROXY=http://127.0.0.1:3128

Do a systemctl daemon-reload
stop and start the service.