-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Snap: Set outbound Proxy #4780
Comments
@irvingwa just so I understand. You want the ability to set an outbound proxy for Rocket.Chat? |
I don't know what he wants, but my Rocket Chat server uses the internet via a corporate proxy. I need RocketChat to use the same proxy as the system, or to setup proxy inside RocketChat so that it can connect to the internet. My server does wget and yum install fine through proxy but RocketChat gets
|
this feature is very important for me |
How do I make a rocket.chat snap instance aware of the HTTP_PROXY and HTTPS_PROXY environment variables? Using
However, rocket.chat 0.59.3 appears to ignore this setting in my situation. Any ideas what I can do to debug this properly? |
if you edit it will be replaced any time the snap is updated. the systemd unit file is created by snapd automatically |
|
I'm not sure if it honors the proxy even when not using snap.. I've seen very mixed reports |
@geekgonecrazy |
Meteor actually does not run inside the snap. Meteor is a node.js framework. When we cut a release we do a meteor build which produces a standalone meteor application. We will be adding a way to easily set these environment variables in the near future. |
Sounds good, thanks! If possible, the snap should ideally just honor the host system's proxy variables in /etc/environment |
I'm not sure if that is possible just by the very nature of snaps. Isolation / privacy / security are all kind of the name of the game for snaps. One of the reasons we chose to use it. |
Not sure if this gets closed by: |
@reetp How can I test this? Can you tell me an operation that causes the rocket.chat server to request a file from the web? |
Paste a link to a file online or a web page is probably easiest |
Nothing happens when I do that. |
This should technically get closed by #12351 it will allow setting environment variables |
#12351 will allow setting of environment variables so any that will be possible with non-snap will now also be possible to set there. Will be released with 0.73.0 |
@geekgonecrazy Thanks for the info, are you saying that setting proxy the way just like @holgerdell did (by running
Or is there a recommended way to set it properly and make sure it persists across snap refreshes? |
After the snap is released for 0.73.0 you will be able to set any environment variable for the snap by dropping a .env file in the common folder. I believe the docs will be updated soon. It will be a few days as usual before the snap release is available. |
@geekgonecrazy Now that 0.73 is out, would you mind pointing me to some instructions on how to set-up proxy using the new way? Thank you. |
It is in the documentation |
To clarify it was merged today as well as 0.73 released to stable channel today :) . But yes can now set environment variables as described in that document |
@reetp Thanks my friend, how do I find a list of environment variables for changing proxy servers? |
Hey all running the latest rocket.chat with a snap install. What is the best way to set both proxy and no proxy lists with the snap install?
The text was updated successfully, but these errors were encountered: