-
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
How can I change environment variable ROOT_URL when using snap package? #6691
Comments
I'm also looking to see how one can change an environment variable, though in my case I would like to specify an external mongo database. For your usecase, I believe you should be using nginx or something similar, and you can use it to proxy to the rocketchat server. |
We aim to keep our Github issues for bugs and feature requests. This does not fit that criteria. |
For anyone that's searching this looks like it's probably related to #4971 |
Hey, you can change it using this now https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/#how-do-i-change-other-environmental-variables-in-my-snap |
While this page (https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/#how-do-i-change-other-environmental-variables-in-my-snap) points out that changing env variables is possible, it doesn't help with the syntax on changing the site_url. |
It doesn´t work for me |
Rocket.Chat Version: 0.54.2
Running Instances:
DB Replicaset OpLog:
Node Version:
I installed Rocket.Chat by
on Ubuntu 16.04 LTS.
How can I change environment variable
ROOT_URL
so that the server runs in a subdirectory?I tried editing /etc/environment and /etc/systemd/system/snap.rocketchat-server.rocketchat-server.service as shown below, but they don't work.
ROOT_URL
with a running server is stillhttp://localhost
when I check it by the following command.(2730 is node server's pid.)
/etc/environment
/etc/systemd/system/snap.rocketchat-server.rocketchat-server.service
/etc/rocketchat_envvars.txt
The text was updated successfully, but these errors were encountered: