Image autoloading does not work behind proxy
Autoloading gif/image feature is important feature for our team building (or flaming) but when using Rocket.Chat behind corporate proxy feature is broken even with http_proxy and https_proxy variable set.
Indeed you are using http or https package from NodeJs that does not respect env variable like http_proxy or https_proxy.
In order to support proxy you should:
- Try
requestpackage instead that respect env variable (https://github.com/request/request#controlling-proxy-behaviour-using-environment-variables) - Use such package https://www.npmjs.com/package/http-proxy-agent with
http/httpsto handle proxy for bothhttpandhttps(more information http://blog.vanamco.com/proxy-requests-in-node-js/)
:+1:
If it's candidate to contribution/PR you should decide if it's possible to remove http/https node package for request package or you want to keep them and try to enable proxy feature on them?
I know that corporate proxy features is specific but for a self-hosted solution is really important (in my mind), but it can be also difficult for you to develop it if you are proxy-less environment.
:+1:
Closing this one instead of #1194 - hopefully some Digital Ocean hackers will pick it up and add a fix soon. Thanks @kakawait !