You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
How do I make a rocket.chat snap instance aware of the HTTP_PROXY and HTTPS_PROXY environment variables?
Using systemctl edit snap.rocketchat-server.rocketchat-server.service, I can edit the environment variables to be used inside the snap container as follows:
@geekgonecrazy
According to this, meteor is supposed to honor the HTTP_PROXY and HTTPS_PROXY environment variables. Is there a way I can issue the meteor update command inside a snap?
#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 sudo systemctl edit snap.rocketchat-server.rocketchat-server.service)will be possible after the release of 0.73.0 for snap users?
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.
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.
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
Activity
geekgonecrazy commentedon Nov 16, 2016
@irvingwa just so I understand. You want the ability to set an outbound proxy for Rocket.Chat?
[-]Proxy/No Proxy Issues[/-][+]Snap: Set outbound Proxy[/+]antoniogermano commentedon Jan 12, 2017
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
�[34mI20170112-15:56:56.633(-2) app.js:471 �[31mSystem ➔ error Error sending push to gateway (6 try) -> { [Error: connect ECONNREFUSED 45.55.199.111:443] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '45.55.199.111', port: 443 }zbyte commentedon Mar 15, 2017
this feature is very important for me
holgerdell commentedon Dec 3, 2017
How do I make a rocket.chat snap instance aware of the HTTP_PROXY and HTTPS_PROXY environment variables?
Using
systemctl edit snap.rocketchat-server.rocketchat-server.service, I can edit the environment variables to be used inside the snap container as follows:However, rocket.chat 0.59.3 appears to ignore this setting in my situation. Any ideas what I can do to debug this properly?
Possible duplicates: #5090, #5896
geekgonecrazy commentedon Jan 3, 2018
if you edit it will be replaced any time the snap is updated. the systemd unit file is created by snapd automatically
holgerdell commentedon Jan 3, 2018
@geekgonecrazy
geekgonecrazy commentedon Jan 3, 2018
I'm not sure if it honors the proxy even when not using snap.. I've seen very mixed reports
holgerdell commentedon Jan 3, 2018
@geekgonecrazy
According to this, meteor is supposed to honor the HTTP_PROXY and HTTPS_PROXY environment variables. Is there a way I can issue the meteor update command inside a snap?
geekgonecrazy commentedon Jan 4, 2018
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.
holgerdell commentedon Jan 5, 2018
Sounds good, thanks!
If possible, the snap should ideally just honor the host system's proxy variables in /etc/environment
4 remaining items
reetp commentedon Oct 29, 2018
Not sure if this gets closed by:
#12351
holgerdell commentedon Oct 29, 2018
@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?
reetp commentedon Nov 4, 2018
Paste a link to a file online or a web page is probably easiest
holgerdell commentedon Nov 4, 2018
Nothing happens when I do that.
geekgonecrazy commentedon Nov 7, 2018
This should technically get closed by #12351 it will allow setting environment variables
geekgonecrazy commentedon Dec 6, 2018
#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
Antairez commentedon Dec 28, 2018
@geekgonecrazy Thanks for the info, are you saying that setting proxy the way just like @holgerdell did (by running
sudo systemctl edit snap.rocketchat-server.rocketchat-server.service)will be possible after the release of 0.73.0 for snap users?Or is there a recommended way to set it properly and make sure it persists across snap refreshes?
geekgonecrazy commentedon Dec 28, 2018
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.
Antairez commentedon Jan 11, 2019
@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.
reetp commentedon Jan 18, 2019
It is in the documentation
https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/
geekgonecrazy commentedon Jan 18, 2019
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
Antairez commentedon Mar 7, 2019
@reetp Thanks my friend, how do I find a list of environment variables for changing proxy servers?