-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outbound http and https requests from server to honor http_proxy env variables (oembed) #1194
Comments
Hints for Digital Ocean Hacktoberfest bounty hunters. http://stackoverflow.com/questions/3862813/how-can-i-use-an-http-proxy-with-node-js-http-client (not a bug because there env variables are not a standard, but something we can honor as a feature) |
Duplicate #851 (consider closing one of them) where I explain other possible solutions Apply proxy on |
https://www.npmjs.com/package/global-tunnel is easy to fix this issue. $ diff rocketchat_oembed.js rocketchat_oembed.js.orgn |
@luozengbin can you elaborate on that? Have an instance of Rocket.Chat deployed from a docker container, just not sure where to put the two lines you mentioned... @Sing-Li I get that handling deployments behind corporate proxies is probably a low priority... but perhaps could we have some proxy fields in the administration panel that it could then read and use for outbound connections? |
Still present, any movement on this so far? |
Fixes #1194: OEmbed http requests use "request" npm package
This has been closed, but I'm still seeing the issue on the latest versions of Rocket.Chat. Is there some sort of advice/wiki page for setting up a regular proxy (not a reverse proxy) that isn't obvious? |
+1 have the same issue. Behind proxy I dont see any preview links |
Can confirm this is still an issue on 0.69.0 (unless I'm missing something obvious). |
Seeing this issue as well on 0.69.1. Any updates? Should I open a new issue? |
For anyone who comes across this, I figured out a (partial) solution if you're running Rocket.Chat under Ubuntu Snaps. From your Rocket.Chat server, run: Add the following contents:
You can leave out the |
There is also a solution for the "manual" Ubuntu install: In the systemd unit file
|
Becarful if you set a HTTP(S)_PROXY it will be you use for everything, even for communication with other local Rocket.Chat instances. NO_PROXY is not read either. See #11484 |
Agreed, HTTP(S)_PROXY its not a solution here. There should be a option under link preview option in rocket chat administration called "proxy settings for downloading external content". And thats it...see? Easy peasy. |
For more Proxy stuff see: |
After discussion in Rocket.Chat#support and some investigation, it was concluded that links to images and pages were not embedding in the chat channel because the http_proxy environment variables were not being honored.
The solution we discussed was to make oembed detect the http_proxy variables and use them if they exist.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: