To access the internet from the rocket chat server it must have direct internet connection. But corporate security policies often prohibit direct access. It’s only allowed to connect through proxy server (squid, bluecoat, checkpoint web application control etc.)
As I see, rocket chat server ignores system environment variables http_proxy and https_proxy and try to access directly
Without internet access we can’t have push notifications and url preview.
Please make possible to set proxy in the rocket chat server or use system proxy settings
There should be a option in rocketchat administration console to setup proxy server specifically for url link preview and push notification only.
There was a conversation regarding this on open.rocket.chat a while back.
I don’t believe it is quite as simple as adding a setting to ‘Use Proxy’ because it can depend on how Rocket is deployed.
Aaron posted this as a potential solution:
https://blog.codeship.com/using-docker-behind-a-proxy/
Some other reading: