Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Rocketchat - custom envs on running instance

    Rocket.Chat
    3
    9
    358
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      parhelium last edited by parhelium

      Hi,

      In docs I found information:

      You can set custom environment variables using cloudron env.
      

      How I can set custom envs for RocketChat instance already running?
      I see it is possible here:
      https://docs.cloudron.io/custom-apps/cli/#environment-variables

      However can I define custom ENVs in cloudron dashboard ?

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @parhelium I have published a new package 2.13.1. You can edit /app/data/env to add custom vars.

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

          There is currently no UI for setting those as it is more tailored towards using Cloudron as a deployment platform for app developers.

          What is the use-case for Rocket.chat here? Just to understand what can be set so we can see how to support that in a way we can also test that for updates.

          P 1 Reply Last reply Reply Quote 0
          • P
            parhelium @nebulon last edited by parhelium

            @nebulon
            The general architecture is to install apps on our client's request on cloudron and every app is integrated with our app.

            Example:
            Instead of reinventing the wheel and writing chat from scratch we are going to embed chat ( RocketChat or Mastodon, etc ) in our app.
            Next phase would be to install custom bots on the same instance of cloudron. In the end we will have X ( 2-10 ) apps installed on cloudron which are integrated and cloudron help us take care about installing, certificates, users management, backup&restore.

            We have also ability to setup separate cloudron for each client.

            1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff last edited by

              I see, however where do the ENV variables come into play specifically for Rocket.chat? I would assume using some Rocket.chat REST API for setting up the integration might be more useful.

              P 1 Reply Last reply Reply Quote 0
              • P
                parhelium @nebulon last edited by parhelium

                @nebulon

                We need CREATE_TOKENS_FOR_USERS=trueto login properly users in Rocket.Chat from another app.

                1 Reply Last reply Reply Quote 0
                • nebulon
                  nebulon Staff last edited by

                  Is there any harm in enabling that variable by default in the app package?

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by girish

                    From my reading of https://github.com/RocketChat/Rocket.Chat/issues/16159, setting that env will allow normal users to use the API. @nebulon maybe we can just source in a env file on startup to make this easier?

                    1 Reply Last reply Reply Quote 0
                    • nebulon
                      nebulon Staff last edited by

                      Good idea, I think that makes most sense. I wasn't able to quickly find any document listing all available env vars for RocketChat. If such a document exists, might be good to add to our docs then.

                      1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff last edited by

                        @parhelium I have published a new package 2.13.1. You can edit /app/data/env to add custom vars.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB