Giter Site home page Giter Site logo

Comments (12)

HudsonProdigy avatar HudsonProdigy commented on August 10, 2024 15

For anyone who needed a little more clarification on @michaelgotchosen helpful post. You need to modify field in mongo db instance. open mongo shell -> use rocketchat -> db.rocketchat_settings.update({"_id" : "Site_Url"},{$set:{value:"NEW_URL"}})

from rocket.chat.raspberrypi.

michaelgotchosen avatar michaelgotchosen commented on August 10, 2024 8

I have been looking to change this setting for a while. I finally took the time to find it. I'm going to place it here in hopes that it will help someone else...

rocketchat->rocketchat_settings->Site_Url->value

breakdown for clarity
rocketchat - db
rocketchat_settings - collection
Site_Url - Key
value - field

from rocket.chat.raspberrypi.

sekrett avatar sekrett commented on August 10, 2024 4

@GorgiAstro I had a similar problem and solved it by dropping mongo database. It appears that ROOT_URL is read and stored to mongo on first launch. So if you change it later it will be ignored.

from rocket.chat.raspberrypi.

fzamperin avatar fzamperin commented on August 10, 2024 3

@sekrett I'm having the same problem I miss-clicked the option and then my reverse proxy broke and I can't delete the whole database. Do you know which collection has the settings? Or how can I achieve your behavior?

from rocket.chat.raspberrypi.

GorgiAstro avatar GorgiAstro commented on August 10, 2024

OK my bad, when connecting to the web interface, I get a warning that suggests me to change the site URL... And it is possible to change it in the web interface settings.

from rocket.chat.raspberrypi.

j8r avatar j8r commented on August 10, 2024

@GorgiAstro It appears like you are using my script :) You can change Rocket.Chat environement variables like ROOT_URL in its systemd service in /etc/systemd/system/rocket.chat.service

from rocket.chat.raspberrypi.

GorgiAstro avatar GorgiAstro commented on August 10, 2024

Yes, but my question was if the site URL is defined by the environment variable ROOT_URL. Because the site URL when Rocket.Chat started (192.168.178.49) was different than the one (192.168.2.2) I had defined in the systemd service file. Now I fixed the site URL from the web interface, but maybe there is an issue in the Rocket.Chat startup process :)

from rocket.chat.raspberrypi.

j8r avatar j8r commented on August 10, 2024

After modifying it have you run systemctl daemon-reload and then systemctl restart rocket.chat?

from rocket.chat.raspberrypi.

sekrett avatar sekrett commented on August 10, 2024

@fzamperin no, I don't know. I dropped entire database.

from rocket.chat.raspberrypi.

Sing-Li avatar Sing-Li commented on August 10, 2024

Excellent and thank you @michaelgotchosen

Please write a short wiki page for us if possible with the above information.

from rocket.chat.raspberrypi.

Lucioric2000 avatar Lucioric2000 commented on August 10, 2024

Thanks. You saved me hours.

from rocket.chat.raspberrypi.

jj-uk avatar jj-uk commented on August 10, 2024

Does "packageValue" also need changing?

db.rocketchat_settings.update({"_id" : "Site_Url"},{$set:{packageValue:"NEW_URL"}})

from rocket.chat.raspberrypi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.